|
7 | 7 | // FIXME: Force linux targets to allow for the libraries to be found. Dummy
|
8 | 8 | // inputs for --sysroot should be updated to work better for Windows.
|
9 | 9 |
|
10 |
| -// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \ |
| 10 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \ |
11 | 11 | // RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s
|
| 12 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fpreview-breaking-changes -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \ |
| 13 | +// RUN: | FileCheck -check-prefixes=CHECK-SPIRV,CHECK-HOST %s |
| 14 | + |
12 | 15 | // -fno-sycl-device-lib mustn't affect the linkage of ITT libraries
|
13 |
| -// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \ |
| 16 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \ |
| 17 | +// RUN: | FileCheck -check-prefixes=CHECK-SPIRV %s |
| 18 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fpreview-breaking-changes -fsycl-instrument-device-code --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \ |
14 | 19 | // RUN: | FileCheck -check-prefixes=CHECK-SPIRV %s
|
15 | 20 |
|
16 | 21 | // CHECK-SPIRV: "-cc1"{{.*}} "-fsycl-is-device"{{.*}} "-fsycl-instrument-device-code"
|
|
25 | 30 | // RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=nvptx64-nvidia-cuda -fno-sycl-instrument-device-code -nocudalib -### %s 2>&1 \
|
26 | 31 | // RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
|
27 | 32 |
|
| 33 | +// ITT annotations are disabled by default under -fpreview-breaking-changes. |
| 34 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fpreview-breaking-changes --sysroot=%S/Inputs/SYCL -fno-sycl-device-lib=all -fsycl-targets=spir64 -### %s 2>&1 \ |
| 35 | +// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s |
| 36 | +// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl --no-offload-new-driver -fpreview-breaking-changes --sysroot=%S/Inputs/SYCL -fsycl-targets=spir64 -### %s 2>&1 \ |
| 37 | +// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s |
| 38 | + |
28 | 39 | // CHECK-NONPASSED-NOT: "-fsycl-instrument-device-code"
|
29 | 40 | // CHECK-NONPASSED-NOT: llvm-link{{.*}} {{.*}}libsycl-itt-{{.*}}.bc"
|
0 commit comments