Sergio Afonso | 837bff1 | 2024-01-30 13:45:56 | [diff] [blame] | 1 | ! REQUIRES: amdgpu-registered-target |
Sergio Afonso | 8e707f8 | 2024-02-08 12:33:43 | [diff] [blame] | 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 |
Sergio Afonso | 837bff1 | 2024-01-30 13:45:56 | [diff] [blame] | 5 | |
| 6 | ! ALL: module attributes { |
| 7 | |
Sergio Afonso | 837bff1 | 2024-01-30 13:45:56 | [diff] [blame] | 8 | ! CPU-SAME: fir.target_cpu = "gfx90a" |
Sergio Afonso | 8e707f8 | 2024-02-08 12:33:43 | [diff] [blame] | 9 | ! CPU-SAME: fir.target_features = #llvm.target_features<[ |
| 10 | ! CPU-SAME: "+gfx90a-insts" |
| 11 | ! CPU-SAME: ]> |
| 12 | |
| 13 | ! FEATURE-SAME: fir.target_features = #llvm.target_features<[ |
| 14 | ! FEATURE-NOT: "+gfx90a-insts" |
| 15 | ! FEATURE-SAME: "+sse" |
| 16 | ! FEATURE-SAME: ]> |
Sergio Afonso | 837bff1 | 2024-01-30 13:45:56 | [diff] [blame] | 17 | |
| 18 | ! BOTH-SAME: fir.target_cpu = "gfx90a" |
| 19 | ! BOTH-SAME: fir.target_features = #llvm.target_features<[ |
| 20 | ! BOTH-SAME: "+gfx90a-insts" |
Sergio Afonso | 8e707f8 | 2024-02-08 12:33:43 | [diff] [blame] | 21 | ! BOTH-SAME: "+sse" |
Sergio Afonso | 837bff1 | 2024-01-30 13:45:56 | [diff] [blame] | 22 | ! BOTH-SAME: ]> |