2017-05-24 22:57:17 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=0.0 %s -o - 2>&1 \
|
2016-04-13 05:42:15 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MAMDGPU-DEBUGGER-ABI-0-0 %s
|
|
|
|
// CHECK-MAMDGPU-DEBUGGER-ABI-0-0: the clang compiler does not support '-mamdgpu-debugger-abi=0.0'
|
2016-05-27 03:36:39 +08:00
|
|
|
|
2017-05-24 22:57:17 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=1.0 %s -o - 2>&1 \
|
2016-04-13 05:42:15 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-MAMDGPU-DEBUGGER-ABI-1-0 %s
|
2019-02-22 05:31:43 +08:00
|
|
|
// CHECK-MAMDGPU-DEBUGGER-ABI-1-0: the clang compiler does not support '-mamdgpu-debugger-abi=1.0'
|
2017-11-11 03:28:25 +08:00
|
|
|
|
2018-10-18 05:39:12 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mcode-object-v3 %s 2>&1 | FileCheck --check-prefix=CODE-OBJECT-V3 %s
|
|
|
|
// CODE-OBJECT-V3: "-target-feature" "+code-object-v3"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-code-object-v3 %s 2>&1 | FileCheck --check-prefix=NO-CODE-OBJECT-V3 %s
|
|
|
|
// NO-CODE-OBJECT-V3: "-target-feature" "-code-object-v3"
|
|
|
|
|
2017-11-11 03:28:25 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mxnack %s 2>&1 | FileCheck --check-prefix=XNACK %s
|
|
|
|
// XNACK: "-target-feature" "+xnack"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-xnack %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s
|
|
|
|
// NO-XNACK: "-target-feature" "-xnack"
|
2018-11-06 06:44:59 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -msram-ecc %s 2>&1 | FileCheck --check-prefix=SRAM-ECC %s
|
|
|
|
// SRAM-ECC: "-target-feature" "+sram-ecc"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-sram-ecc %s 2>&1 | FileCheck --check-prefix=NO-SRAM-ECC %s
|
|
|
|
// NO-SRAM-ECC: "-target-feature" "-sram-ecc"
|
2019-05-14 07:15:59 +08:00
|
|
|
|
2019-06-14 07:47:59 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mwavefrontsize64 %s 2>&1 | FileCheck --check-prefix=WAVE64 %s
|
|
|
|
// WAVE64: "-target-feature" "-wavefrontsize16" "-target-feature" "-wavefrontsize32" "-target-feature" "+wavefrontsize64"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-wavefrontsize64 %s 2>&1 | FileCheck --check-prefix=NO-WAVE64 %s
|
|
|
|
// NO-WAVE64: "-target-feature" "-wavefrontsize16" "-target-feature" "+wavefrontsize32" "-target-feature" "-wavefrontsize64"
|
|
|
|
|
2019-05-14 07:15:59 +08:00
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mcumode %s 2>&1 | FileCheck --check-prefix=CUMODE %s
|
|
|
|
// CUMODE: "-target-feature" "+cumode"
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-cumode %s 2>&1 | FileCheck --check-prefix=NO-CUMODE %s
|
|
|
|
// NO-CUMODE: "-target-feature" "-cumode"
|