blob: 15bcfed1550d19fba7a43811b5da9a46cf72278c [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
Konstantin Zhuravlyov71225952018-10-17 21:39:12 +00009// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mcode-object-v3 %s 2>&1 | FileCheck --check-prefix=CODE-OBJECT-V3 %s
10// CODE-OBJECT-V3: "-target-feature" "+code-object-v3"
11
12// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-code-object-v3 %s 2>&1 | FileCheck --check-prefix=NO-CODE-OBJECT-V3 %s
13// NO-CODE-OBJECT-V3: "-target-feature" "-code-object-v3"
14
Konstantin Zhuravlyovbfd6c1c2017-11-10 19:28:25 +000015// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mxnack %s 2>&1 | FileCheck --check-prefix=XNACK %s
16// XNACK: "-target-feature" "+xnack"
17
18// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-xnack %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s
19// NO-XNACK: "-target-feature" "-xnack"
Konstantin Zhuravlyov08c41652018-11-05 22:44:59 +000020
21// RUN: %clang -### -target amdgcn -mcpu=gfx700 -msram-ecc %s 2>&1 | FileCheck --check-prefix=SRAM-ECC %s
22// SRAM-ECC: "-target-feature" "+sram-ecc"
23
24// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-sram-ecc %s 2>&1 | FileCheck --check-prefix=NO-SRAM-ECC %s
25// NO-SRAM-ECC: "-target-feature" "-sram-ecc"