Skip to content

Commit aabac7b

Browse files
committed
Add comment and combine no ITT check tests
1 parent 3e43edc commit aabac7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/test/Driver/sycl-instrumentation-old-model.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
// RUN: %clangxx -fsycl --no-offload-new-driver -fsycl-targets=spir64 -### \
2727
// RUN: --sysroot=%S/Inputs/SYCL %s 2>&1 \
2828
// RUN: | FileCheck -check-prefixes=CHECK-ITT-LINK-ONLY %s
29-
// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL \
30-
// RUN: -fsycl-targets=nvptx64-nvidia-cuda -nocudalib -### %s 2>&1 \
31-
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
3229

3330
// CHECK-ITT-LINK-ONLY-NOT: "-fsycl-instrument-device-code"
3431
// CHECK-ITT-LINK-ONLY: llvm-link{{.*}} {{.*}}libsycl-itt-{{.*}}
3532

33+
// Verify that ITT annotations are not pulled in for non-SPIR-V targets as
34+
// well as when device code instrumentation is explicitly turned off.
35+
// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL \
36+
// RUN: -fsycl-targets=nvptx64-nvidia-cuda -nocudalib -### %s 2>&1 \
37+
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s
3638
// RUN: %clangxx -fsycl --no-offload-new-driver --sysroot=%S/Inputs/SYCL \
3739
// RUN: -fno-sycl-instrument-device-code -fsycl-targets=spir64 -### %s 2>&1 \
3840
// RUN: | FileCheck -check-prefixes=CHECK-NONPASSED %s

0 commit comments

Comments
 (0)