[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / target-id.cl
blob955f32f017056a0ba00573762fb2a84f6f032813
1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
4 // RUN: %clang -### -target amdgcn-amd-amdhsa \
5 // RUN: -mcpu=gfx908:xnack+:sramecc- \
6 // RUN: -nostdlib %s 2>&1 | FileCheck %s
8 // RUN: %clang -### -target amdgcn-amd-amdhsa \
9 // RUN: -mcpu=gfx908:xnack+:sramecc- \
10 // RUN: -nostdlib -x ir %s 2>&1 | FileCheck %s
12 // RUN: %clang -### -target amdgcn-amd-amdhsa \
13 // RUN: -mcpu=gfx908:xnack+:sramecc- \
14 // RUN: -nostdlib -x assembler %s 2>&1 | FileCheck %s
16 // RUN: %clang -### -target amdgcn-amd-amdpal \
17 // RUN: -mcpu=gfx908:xnack+:sramecc- \
18 // RUN: -nostdlib %s 2>&1 | FileCheck %s
20 // RUN: %clang -### -target amdgcn--mesa3d \
21 // RUN: -mcpu=gfx908:xnack+:sramecc- \
22 // RUN: -nostdlib %s 2>&1 | FileCheck %s
24 // RUN: %clang -### -target amdgcn-amd-amdhsa \
25 // RUN: -nostdlib %s 2>&1 | FileCheck -check-prefix=NONE %s
27 // CHECK: "-target-cpu" "gfx908"
28 // CHECK-SAME: "-target-feature" "-sramecc"
29 // CHECK-SAME: "-target-feature" "+xnack"
31 // NONE-NOT: "-target-cpu"
32 // NONE-NOT: "-target-feature"