1 ! REQUIRES: amdgpu-registered-target
2 ! RUN: %flang_fc1 -emit-fir -triple amdgcn-amd-amdhsa -target-cpu gfx90a %s -o - | FileCheck %s --check-prefixes=ALL,CPU
3 ! RUN: %flang_fc1 -emit-fir -triple amdgcn-amd-amdhsa -target-feature +sse %s -o - | FileCheck %s --check-prefixes=ALL,FEATURE
4 ! RUN: %flang_fc1 -emit-fir -triple amdgcn-amd-amdhsa -target-cpu gfx90a -target-feature +sse %s -o - | FileCheck %s --check-prefixes=ALL,BOTH
6 ! ALL: module attributes {
8 ! CPU-SAME: fir.target_cpu = "gfx90a"
9 ! CPU-SAME: fir.target_features = #llvm.target_features<[
10 ! CPU-SAME: "+gfx90a-insts"
13 ! FEATURE-SAME: fir.target_features = #llvm.target_features<[
14 ! FEATURE-NOT: "+gfx90a-insts"
15 ! FEATURE-SAME: "+sse"
18 ! BOTH-SAME: fir.target_cpu = "gfx90a"
19 ! BOTH-SAME: fir.target_features = #llvm.target_features<[
20 ! BOTH-SAME: "+gfx90a-insts"