Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 1 | // RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=0.0 %s -o - 2>&1 \ |
Konstantin Zhuravlyov | 5124bf8 | 2016-04-12 21:42:15 +0000 | [diff] [blame] | 2 | // RUN: | FileCheck --check-prefix=CHECK-MAMDGPU-DEBUGGER-ABI-0-0 %s |
| 3 | // CHECK-MAMDGPU-DEBUGGER-ABI-0-0: the clang compiler does not support '-mamdgpu-debugger-abi=0.0' |
Konstantin Zhuravlyov | e6dbd90 | 2016-05-26 19:36:39 +0000 | [diff] [blame] | 4 | |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 5 | // RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=1.0 %s -o - 2>&1 \ |
Konstantin Zhuravlyov | 5124bf8 | 2016-04-12 21:42:15 +0000 | [diff] [blame] | 6 | // RUN: | FileCheck --check-prefix=CHECK-MAMDGPU-DEBUGGER-ABI-1-0 %s |
Konstantin Zhuravlyov | e6dbd90 | 2016-05-26 19:36:39 +0000 | [diff] [blame] | 7 | // CHECK-MAMDGPU-DEBUGGER-ABI-1-0: "-target-feature" "+amdgpu-debugger-insert-nops" "-target-feature" "+amdgpu-debugger-reserve-regs" "-target-feature" "+amdgpu-debugger-emit-prologue" |
Konstantin Zhuravlyov | bfd6c1c | 2017-11-10 19:28:25 +0000 | [diff] [blame] | 8 | |
| 9 | // RUN: %clang -### -target amdgcn -mcpu=gfx700 -mxnack %s 2>&1 | FileCheck --check-prefix=XNACK %s |
| 10 | // XNACK: "-target-feature" "+xnack" |
| 11 | |
| 12 | // RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-xnack %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s |
| 13 | // NO-XNACK: "-target-feature" "-xnack" |