[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / target-id.cl
blob9bef5141fb39e921a7cb0cbefd7208ac9cb0a9bb
1 // RUN: %clang -### -target amdgcn-amd-amdhsa \
2 // RUN: -mcpu=gfx908:xnack+:sramecc- \
3 // RUN: -nostdlib %s 2>&1 | FileCheck %s
5 // RUN: %clang -### -target amdgcn-amd-amdhsa \
6 // RUN: -mcpu=gfx908:xnack+:sramecc- \
7 // RUN: -nostdlib -x ir %s 2>&1 | FileCheck %s
9 // RUN: %clang -### -target amdgcn-amd-amdhsa \
10 // RUN: -mcpu=gfx908:xnack+:sramecc- \
11 // RUN: -nostdlib -x assembler %s 2>&1 | FileCheck %s
13 // RUN: %clang -### -target amdgcn-amd-amdpal \
14 // RUN: -mcpu=gfx908:xnack+:sramecc- \
15 // RUN: -nostdlib %s 2>&1 | FileCheck %s
17 // RUN: %clang -### -target amdgcn--mesa3d \
18 // RUN: -mcpu=gfx908:xnack+:sramecc- \
19 // RUN: -nostdlib %s 2>&1 | FileCheck %s
21 // RUN: %clang -### -target amdgcn-amd-amdhsa \
22 // RUN: -nostdlib %s 2>&1 | FileCheck -check-prefix=NONE %s
24 // CHECK: "-target-cpu" "gfx908"
25 // CHECK-SAME: "-target-feature" "-sramecc"
26 // CHECK-SAME: "-target-feature" "+xnack"
28 // NONE-NOT: "-target-cpu"
29 // NONE-NOT: "-target-feature"