[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Lower / target-features-amdgcn.f90
blob382230d7353dc2ccd4e7f0660f8970037a59483f
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"
11 ! CPU-SAME: ]>
13 ! FEATURE-SAME: fir.target_features = #llvm.target_features<[
14 ! FEATURE-NOT: "+gfx90a-insts"
15 ! FEATURE-SAME: "+sse"
16 ! FEATURE-SAME: ]>
18 ! BOTH-SAME: fir.target_cpu = "gfx90a"
19 ! BOTH-SAME: fir.target_features = #llvm.target_features<[
20 ! BOTH-SAME: "+gfx90a-insts"
21 ! BOTH-SAME: "+sse"
22 ! BOTH-SAME: ]>