[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / amdgpu-features.c
blob864744db203e910a9ffd719514ca0e91b4847179
1 // RUN: %clang -### --target=amdgcn-amdhsa -mcpu=gfx900:xnack+ -nogpulib %s 2>&1 | FileCheck --check-prefix=XNACK %s
2 // XNACK: "-target-feature" "+xnack"
4 // RUN: %clang -### -target amdgcn-amdpal -mcpu=gfx900:xnack- %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s
5 // NO-XNACK: "-target-feature" "-xnack"
7 // RUN: %clang -### -target amdgcn-mesa3d -mcpu=gfx908:sramecc+ %s 2>&1 | FileCheck --check-prefix=SRAM-ECC %s
8 // SRAM-ECC: "-target-feature" "+sramecc"
10 // RUN: %clang -### --target=amdgcn-amdhsa -mcpu=gfx908:sramecc- -nogpulib %s 2>&1 | FileCheck --check-prefix=NO-SRAM-ECC %s
11 // NO-SRAM-ECC: "-target-feature" "-sramecc"
13 // RUN: %clang -### -target amdgcn -mcpu=gfx90A -mtgsplit %s 2>&1 | FileCheck --check-prefix=TGSPLIT %s
14 // RUN: %clang -### -target amdgcn -mcpu=gfx90A -mno-tgsplit %s 2>&1 | FileCheck --check-prefix=NO-TGSPLIT %s
15 // TGSPLIT: "-target-feature" "+tgsplit"
16 // NO-TGSPLIT: "-target-feature" "-tgsplit"
18 // RUN: %clang -### -target amdgcn-amdpal -mcpu=gfx1010 -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefix=WAVE64 %s
19 // RUN: %clang -### -target amdgcn-amdpal -mcpu=gfx1010 -mno-wavefrontsize64 -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefix=WAVE64 %s
20 // WAVE64: "-target-feature" "+wavefrontsize64"
21 // WAVE64-NOT: {{".*wavefrontsize16"}}
22 // WAVE64-NOT: {{".*wavefrontsize32"}}
24 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefix=NO-WAVE64 %s
25 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mwavefrontsize64 -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefix=NO-WAVE64 %s
26 // NO-WAVE64-NOT: {{".*wavefrontsize16"}}
27 // NO-WAVE64-NOT: {{".*wavefrontsize32"}}
28 // NO-WAVE64-NOT: {{".*wavefrontsize64"}}
30 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mcumode %s 2>&1 | FileCheck --check-prefix=CUMODE %s
31 // CUMODE: "-target-feature" "+cumode"
33 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-cumode %s 2>&1 | FileCheck --check-prefix=NO-CUMODE %s
34 // NO-CUMODE: "-target-feature" "-cumode"
36 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mamdgpu-precise-memory-op %s 2>&1 | FileCheck --check-prefix=PREC-MEM %s
37 // PREC-MEM: "-target-feature" "+precise-memory"
39 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-amdgpu-precise-memory-op %s 2>&1 | FileCheck --check-prefix=NO-PREC-MEM %s
40 // NO-PREC-MEM-NOT: {{".*precise-memory"}}