blob: 0e54a5e2512f7d17e655808e15dd6d880ea3a8ae [file] [log] [blame]
Serge Pavlovb43573b2017-05-24 14:57:17 +00001// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=0.0 %s -o - 2>&1 \
Konstantin Zhuravlyov5124bf82016-04-12 21:42:15 +00002// 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 Zhuravlyove6dbd902016-05-26 19:36:39 +00004
Serge Pavlovb43573b2017-05-24 14:57:17 +00005// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri -mamdgpu-debugger-abi=1.0 %s -o - 2>&1 \
Konstantin Zhuravlyov5124bf82016-04-12 21:42:15 +00006// RUN: | FileCheck --check-prefix=CHECK-MAMDGPU-DEBUGGER-ABI-1-0 %s
Konstantin Zhuravlyov37e97392018-06-21 20:27:47 +00007// CHECK-MAMDGPU-DEBUGGER-ABI-1-0: "-target-feature" "+amdgpu-debugger-insert-nops" "-target-feature" "+amdgpu-debugger-emit-prologue"
Konstantin Zhuravlyovbfd6c1c2017-11-10 19:28:25 +00008
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"