| 1 |
// RUN: %clang -### --target=amdgcn-amdhsa -mcpu=gfx900:xnack+ -nogpulib %s 2>&1 | FileCheck --check-prefix=XNACK %s |
| 2 |
// XNACK: "-target-feature" "+xnack" |
| 3 |
|
| 4 |
// RUN: %clang -### -target amdgcn-amdpal -mcpu=gfx900:xnack- %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s |
| 5 |
// NO-XNACK: "-target-feature" "-xnack" |
| 6 |
|
| 7 |
// RUN: %clang -### -target amdgcn-mesa3d -mcpu=gfx908:sramecc+ %s 2>&1 | FileCheck --check-prefix=SRAM-ECC %s |
| 8 |
// SRAM-ECC: "-target-feature" "+sramecc" |
| 9 |
|
| 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" |
| 12 |
|
| 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" |
| 17 |
|
| 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"}} |
| 23 |
|
| 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"}} |
| 29 |
|
| 30 |
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mcumode %s 2>&1 | FileCheck --check-prefix=CUMODE %s |
| 31 |
// CUMODE: "-target-feature" "+cumode" |
| 32 |
|
| 33 |
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-cumode %s 2>&1 | FileCheck --check-prefix=NO-CUMODE %s |
| 34 |
// NO-CUMODE: "-target-feature" "-cumode" |
| 35 |
|
| 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" |
| 38 |
|
| 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"}} |