Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/hip-std.hip @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // REQUIRES: clang-driver | |
2 // REQUIRES: x86-registered-target | 1 // REQUIRES: x86-registered-target |
3 // REQUIRES: amdgpu-registered-target | 2 // REQUIRES: amdgpu-registered-target |
4 | 3 |
5 // RUN: %clang -### -target x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ | 4 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ |
6 // RUN: 2>&1 | FileCheck -check-prefixes=DEFAULT %s | 5 // RUN: 2>&1 | FileCheck -check-prefixes=DEFAULT %s |
7 // DEFAULT: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++11" | 6 // DEFAULT: "-cc1"{{.*}}"-fcuda-is-device"{{.*}} |
8 // DEFAULT: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-std=c++11" | 7 // DEFAULT-NOT: "-std="{{.*}} |
8 // DEFAULT: "-cc1"{{.*}} | |
9 // DEFAULT-NOT: "-std="{{.*}} | |
9 | 10 |
10 // RUN: %clang -### -target x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ | 11 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ |
11 // RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=SPECIFIED %s | 12 // RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=SPECIFIED %s |
12 // SPECIFIED: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" | 13 // SPECIFIED: "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" |
13 // SPECIFIED: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-std=c++17" | 14 // SPECIFIED: "-cc1"{{.*}}"-std=c++17" |
14 | 15 |
15 // RUN: %clang -### -target x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ | 16 // RUN: %clang -### --target=x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ |
16 // RUN: 2>&1 | FileCheck -check-prefixes=MSVC-DEF %s | 17 // RUN: 2>&1 | FileCheck -check-prefixes=MSVC-DEF %s |
17 // MSVC-DEF: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++14" | 18 // MSVC-DEF: "-cc1"{{.*}}"-fcuda-is-device"{{.*}} |
18 // MSVC-DEF: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-std=c++14" | 19 // MSVC-DEF-NOT: "-std="{{.*}} |
20 // MSVC-DEF: "-cc1"{{.*}} | |
21 // MSVC-DEF-NOT: "-std="{{.*}} | |
19 | 22 |
20 // RUN: %clang -### -target x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ | 23 // RUN: %clang -### --target=x86_64-pc-windows-msvc -offload-arch=gfx906 %s \ |
21 // RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=MSVC-SPEC %s | 24 // RUN: -std=c++17 %s 2>&1 | FileCheck -check-prefixes=MSVC-SPEC %s |
22 // MSVC-SPEC: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" | 25 // MSVC-SPEC: "-cc1"{{.*}}"-fcuda-is-device"{{.*}}"-std=c++17" |
23 // MSVC-SPEC: "{{.*}}clang{{.*}}" "-cc1"{{.*}}"-std=c++17" | 26 // MSVC-SPEC: "-cc1"{{.*}}"-std=c++17" |