221
|
1 // REQUIRES: x86-registered-target
|
|
2 // REQUIRES: amdgpu-registered-target
|
|
3
|
|
4 // RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
5 // RUN: -mcpu=gfx908:xnack+:sramecc- \
|
|
6 // RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
7
|
|
8 // RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
9 // RUN: -mcpu=gfx908:xnack+:sramecc- \
|
|
10 // RUN: -nostdlib -x ir %s 2>&1 | FileCheck %s
|
|
11
|
|
12 // RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
13 // RUN: -mcpu=gfx908:xnack+:sramecc- \
|
|
14 // RUN: -nostdlib -x assembler %s 2>&1 | FileCheck %s
|
|
15
|
|
16 // RUN: %clang -### -target amdgcn-amd-amdpal \
|
|
17 // RUN: -mcpu=gfx908:xnack+:sramecc- \
|
|
18 // RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
19
|
|
20 // RUN: %clang -### -target amdgcn--mesa3d \
|
|
21 // RUN: -mcpu=gfx908:xnack+:sramecc- \
|
|
22 // RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
23
|
|
24 // RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
25 // RUN: -nostdlib %s 2>&1 | FileCheck -check-prefix=NONE %s
|
|
26
|
|
27 // CHECK: "-target-cpu" "gfx908"
|
|
28 // CHECK-SAME: "-target-feature" "-sramecc"
|
|
29 // CHECK-SAME: "-target-feature" "+xnack"
|
|
30
|
|
31 // NONE-NOT: "-target-cpu"
|
|
32 // NONE-NOT: "-target-feature"
|