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
|
2016-05-27 03:36:39 +08:00
|
|
|
// CHECK-MAMDGPU-DEBUGGER-ABI-1-0: "-target-feature" "+amdgpu-debugger-insert-nops" "-target-feature" "+amdgpu-debugger-reserve-regs" "-target-feature" "+amdgpu-debugger-emit-prologue"
|
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"
|