Skip to content

Commit fa7fd05

Browse files
committed
Fix testcases due to exit with code 1 if hasErrorOccurred f39c399
1 parent 468f3a0 commit fa7fd05

26 files changed

+150
-150
lines changed

clang/test/Driver/pch-fsycl-error.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
// RUN: touch %t.h
55

66
// Linux
7-
// RUN: %clang -c -fsycl -x c++-header %t.h -### %s 2> %t1.txt
7+
// RUN: not %clang -c -fsycl -x c++-header %t.h -### %s 2> %t1.txt
88
// RUN: FileCheck %s -input-file=%t1.txt
99
// CHECK: Precompiled header generation is not supported with '-fsycl'
1010

1111
// Windows
12-
// RUN: %clang_cl -c -fsycl -x c++-header %t.h -### -- %s 2>&1 \
12+
// RUN: not %clang_cl -c -fsycl -x c++-header %t.h -### -- %s 2>&1 \
1313
// RUN: | FileCheck -check-prefix=CHECK-ERROR %s
1414
// CHECK-ERROR: Precompiled header generation is not supported with '-fsycl'
1515

1616
// /Yc
17-
// RUN: %clang_cl -fsycl /Ycpchfile.h /FIpchfile.h /c -### -- %s 2>&1 \
17+
// RUN: not %clang_cl -fsycl /Ycpchfile.h /FIpchfile.h /c -### -- %s 2>&1 \
1818
// RUN: | FileCheck -check-prefix=CHECK-YC %s
1919
// CHECK-YC: Precompiled header generation is not supported with '-fsycl'

clang/test/Driver/sycl-MD-default.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
// CHK-DEFAULT-CL-MDd: "-D_CONTAINER_DEBUG_LEVEL=0" "-D_ITERATOR_DEBUG_LEVEL=0"
1717
// CHK-DEFAULT-CL: "-fsycl-is-host"{{.*}} "-D_MT" "-D_DLL" "--dependent-lib=msvcrt{{d*}}"
1818

19-
// RUN: %clang_cl -### -MT -fsycl -c %s 2>&1 \
19+
// RUN: not %clang_cl -### -MT -fsycl -c %s 2>&1 \
2020
// RUN: | FileCheck -check-prefix=CHK-ERROR %s
21-
// RUN: %clang_cl -### -MTd -fsycl -c %s 2>&1 \
21+
// RUN: not %clang_cl -### -MTd -fsycl -c %s 2>&1 \
2222
// RUN: | FileCheck -check-prefix=CHK-ERROR %s
2323
// CHK-ERROR: option 'MT{{d*}}' unsupported with DPC++

clang/test/Driver/sycl-cuda-include-wrapper.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test the inclusion of the CUDA runtime wrapper in the SYCL device
22
// compilation of .cu sources.
33

4-
// RUN: %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
4+
// RUN: not %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
55
// RUN:: --cuda-path=%S/Inputs/CUDA/usr/local/cuda -c %s 2>&1 \
66
// RUN: | FileCheck -check-prefix=CHK-HEADERS-SYCL-CUDA %s
77
// CHK-HEADERS-SYCL-CUDA: clang{{.*}}"-fsycl-is-device"{{.*}}"-include" "__clang_cuda_runtime_wrapper.h"

clang/test/Driver/sycl-cxx-default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
// CXX_TYPE_CHECK: "-x" "c++"
1414
// CXX_TYPE_CHECK-NOT: "-x" "c"
1515

16-
// RUN: %clang -c -fsycl -std=c99 %s -### 2>&1 \
16+
// RUN: not %clang -c -fsycl -std=c99 %s -### 2>&1 \
1717
// RUN: | FileCheck -check-prefix=C_SYCL_ERROR_CHECK %s
1818
// C_SYCL_ERROR_CHECK: error: invalid argument '-std=c99' not allowed with '-fsycl

clang/test/Driver/sycl-device-lib-opaque-pointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/// ###########################################################################
1111

12-
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda %s --sysroot=%S/Inputs/SYCL -### 2>&1 \
12+
// RUN: not %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda %s --sysroot=%S/Inputs/SYCL -### 2>&1 \
1313
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_OPAQUE_NON_SPIRV
1414
// RUN: %clangxx -fsycl %s --sysroot=%S/Inputs/SYCL -### 2>&1 \
1515
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_OPAQUE_SPIRV

clang/test/Driver/sycl-device-lib.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@
127127
/// ###########################################################################
128128

129129
/// test invalid value for -f[no-]sycl-device-lib
130-
// RUN: %clangxx -fsycl %s -fsycl-device-lib=libc,dummy -### 2>&1 \
130+
// RUN: not %clangxx -fsycl %s -fsycl-device-lib=libc,dummy -### 2>&1 \
131131
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_INVALID_VALUE -DVal=dummy
132-
// RUN: %clangxx -fsycl %s -fno-sycl-device-lib=dummy,libm-fp32 -### 2>&1 \
132+
// RUN: not %clangxx -fsycl %s -fno-sycl-device-lib=dummy,libm-fp32 -### 2>&1 \
133133
// RUN: | FileCheck %s -check-prefix=SYCL_NO_DEVICE_LIB_INVALID_VALUE -DVal=dummy
134134
// Do separate checks for the compiler-reserved "internal" value
135-
// RUN: %clangxx -fsycl %s -fsycl-device-lib=internal -### 2>&1 \
135+
// RUN: not %clangxx -fsycl %s -fsycl-device-lib=internal -### 2>&1 \
136136
// RUN: | FileCheck %s -check-prefix=SYCL_DEVICE_LIB_INVALID_VALUE -DVal=internal
137-
// RUN: %clangxx -fsycl %s -fno-sycl-device-lib=internal -### 2>&1 \
137+
// RUN: not %clangxx -fsycl %s -fno-sycl-device-lib=internal -### 2>&1 \
138138
// RUN: | FileCheck %s -check-prefix=SYCL_NO_DEVICE_LIB_INVALID_VALUE -DVal=internal
139139
// SYCL_DEVICE_LIB_INVALID_VALUE: error: unsupported argument '[[Val]]' to option '-fsycl-device-lib='
140140
// SYCL_NO_DEVICE_LIB_INVALID_VALUE: error: unsupported argument '[[Val]]' to option '-fno-sycl-device-lib='

clang/test/Driver/sycl-fno-libspirv-warn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Test that appropriate warnings are output when -fno-sycl-libspirv is used.
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa -fno-sycl-libspirv %s -### 2>&1 | FileCheck %s
3+
// RUN: not %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa -fno-sycl-libspirv %s -### 2>&1 | FileCheck %s
44
// CHECK: warning: '-fno-sycl-libspirv' should not be used with target 'nvptx64-nvidia-cuda'; libspirv is required for correct behavior [-Wno-libspirv-hip-cuda]
55
// CHECK: warning: '-fno-sycl-libspirv' should not be used with target 'amdgcn-amd-amdhsa'; libspirv is required for correct behavior [-Wno-libspirv-hip-cuda]
66
// RUN: %clangxx -fsycl -fsycl-targets=spir64-unknown-unknown -fno-sycl-libspirv %s -### 2>&1 | FileCheck --check-prefix=CHECK-SPIR64 %s

clang/test/Driver/sycl-force-target.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// CHECK_FORCE_TARGET_ARCHIVE: llvm-foreach{{.*}} {{.*}}ocloc{{.*}}
3535

3636
/// -fsycl-force-target is only valid with -fsycl-target with single targets
37-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen,spir64_x86_64 \
37+
// RUN: not %clangxx -fsycl -fsycl-targets=spir64_gen,spir64_x86_64 \
3838
// RUN: -fsycl-force-target=spir64 %s -### 2>&1 \
3939
// RUN: | FileCheck %s -check-prefix=MULTIPLE_TARGET
4040
// MULTIPLE_TARGET: error: multiple target usage with '-fsycl-targets=spir64_gen,spir64_x86_64' is not supported with '-fsycl-force-target=spir64'

clang/test/Driver/sycl-host-compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// HOST_ASSEMBLY_CL: clang-offload-bundler{{.*}} "-input={{.*}}.bc" "-input=[[ASMOUT]]"
5959

6060
/// missing argument error -fsycl-host-compiler=
61-
// RUN: %clangxx -fsycl -fsycl-host-compiler= -c -### %s 2>&1 \
61+
// RUN: not %clangxx -fsycl -fsycl-host-compiler= -c -### %s 2>&1 \
6262
// RUN: | FileCheck -check-prefix=HOST_COMPILER_NOARG %s
6363
// HOST_COMPILER_NOARG: missing argument to '-fsycl-host-compiler='
6464

clang/test/Driver/sycl-libspirv-invalid.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
/// Test that `-fsycl-libspirv-path=` produces a diagnostic when the library is not found.
22
// UNSUPPORTED: system-windows
33

4-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
4+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
55
// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
66
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \
77
// RUN: | FileCheck --check-prefix=ERR-CUDA %s
88
// ERR-CUDA: cannot find 'remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc';
99
// ERR-CUDA-SAME: provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
1010

11-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-windows-msvc -fsycl \
11+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-windows-msvc -fsycl \
1212
// RUN: -fsycl-targets=nvptx64-nvidia-cuda --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
1313
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \
1414
// RUN: | FileCheck --check-prefix=ERR-CUDA-WIN %s
1515
// ERR-CUDA-WIN: cannot find 'remangled-l32-signed_char.libspirv-nvptx64-nvidia-cuda.bc';
1616
// ERR-CUDA-WIN-SAME: provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
1717

18-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
18+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
1919
// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 \
2020
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc %s 2>&1 \
2121
// RUN: | FileCheck --check-prefix=ERR-HIP %s
@@ -28,7 +28,7 @@
2828
// RUN: | FileCheck --check-prefix=OK-CUDA %s
2929
// OK-CUDA-NOT: cannot find suitable 'remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc'
3030

31-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
31+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
3232
// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx908 \
3333
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/no-libspirv-exists-here.bc -fno-sycl-libspirv %s 2>&1 \
3434
// RUN: | FileCheck --check-prefix=OK-HIP %s

clang/test/Driver/sycl-link-add-targets.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,43 @@
44
///
55

66
/// Check whether an invalid SYCL target is specified:
7-
// RUN: %clang -### -fsycl -fsycl-add-targets=dummy-target:dummy-file %s 2>&1 \
7+
// RUN: not %clang -### -fsycl -fsycl-add-targets=dummy-target:dummy-file %s 2>&1 \
88
// RUN: | FileCheck -check-prefix=CHK-INVALID-TARGET-ADD %s
9-
// RUN: %clang_cl -### -fsycl -fsycl-add-targets=dummy-target:dummy-file %s 2>&1 \
9+
// RUN: not %clang_cl -### -fsycl -fsycl-add-targets=dummy-target:dummy-file %s 2>&1 \
1010
// RUN: | FileCheck -check-prefix=CHK-INVALID-TARGET-ADD %s
1111
// CHK-INVALID-TARGET-ADD: error: SYCL target is invalid: 'dummy-target'
1212

1313
/// Check error for no -fsycl option
14-
// RUN: %clang -### -fsycl-link-targets=spir64-unknown-unknown %s 2>&1 \
14+
// RUN: not %clang -### -fsycl-link-targets=spir64-unknown-unknown %s 2>&1 \
1515
// RUN: | FileCheck -check-prefix=CHK-NO-FSYCL-LINK-TGTS %s
1616
// CHK-NO-FSYCL-LINK-TGTS: error: '-fsycl-link-targets' must be used in conjunction with '-fsycl' to enable offloading
1717

18-
// RUN: %clang -### -fsycl-add-targets=spir64-unknown-unknown %s 2>&1 \
18+
// RUN: not %clang -### -fsycl-add-targets=spir64-unknown-unknown %s 2>&1 \
1919
// RUN: | FileCheck -check-prefix=CHK-NO-FSYCL-ADD %s
2020
// CHK-NO-FSYCL-ADD: error: '-fsycl-add-targets' must be used in conjunction with '-fsycl' to enable offloading
2121

2222
/// Check error for -fsycl-add-targets -fsycl-link-targets conflict
23-
// RUN: %clang -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-add-targets=spir64:dummy.spv -fsycl %s 2>&1 \
23+
// RUN: not %clang -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-add-targets=spir64:dummy.spv -fsycl %s 2>&1 \
2424
// RUN: | FileCheck -check-prefix=CHK-SYCL-ADD-LINK %s
25-
// RUN: %clang_cl -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-add-targets=spir64:dummy.spv -fsycl %s 2>&1 \
25+
// RUN: not %clang_cl -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-add-targets=spir64:dummy.spv -fsycl %s 2>&1 \
2626
// RUN: | FileCheck -check-prefix=CHK-SYCL-ADD-LINK %s
2727
// CHK-SYCL-ADD-LINK: error: The option -fsycl-link-targets= conflicts with -fsycl-add-targets=
2828

2929
/// Check error for -fsycl-targets -fsycl-link-targets conflict
30-
// RUN: %clang -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-targets=spir64-unknown-unknown -fsycl %s 2>&1 \
30+
// RUN: not %clang -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-targets=spir64-unknown-unknown -fsycl %s 2>&1 \
3131
// RUN: | FileCheck -check-prefix=CHK-SYCL-LINK-CONFLICT %s
32-
// RUN: %clang_cl -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-targets=spir64-unknown-unknown -fsycl %s 2>&1 \
32+
// RUN: not %clang_cl -### -fsycl-link-targets=spir64-unknown-unknown -fsycl-targets=spir64-unknown-unknown -fsycl %s 2>&1 \
3333
// RUN: | FileCheck -check-prefix=CHK-SYCL-LINK-CONFLICT %s
3434
// CHK-SYCL-LINK-CONFLICT: error: The option -fsycl-targets= conflicts with -fsycl-link-targets=
3535

3636
/// Check error for -fsycl-[add|link]-targets with bad triple
37-
// RUN: %clang -### -fsycl-add-targets=spir64_bad-unknown-unknown:dummy.spv -fsycl %s 2>&1 \
37+
// RUN: not %clang -### -fsycl-add-targets=spir64_bad-unknown-unknown:dummy.spv -fsycl %s 2>&1 \
3838
// RUN: | FileCheck -check-prefix=CHK-SYCL-FPGA-BAD-ADDLINK-TRIPLE %s
39-
// RUN: %clang_cl -### -fsycl-add-targets=spir64_bad-unknown-unknown:dummy.spv -fsycl %s 2>&1 \
39+
// RUN: not %clang_cl -### -fsycl-add-targets=spir64_bad-unknown-unknown:dummy.spv -fsycl %s 2>&1 \
4040
// RUN: | FileCheck -check-prefix=CHK-SYCL-FPGA-BAD-ADDLINK-TRIPLE %s
41-
// RUN: %clang -### -fsycl-link-targets=spir64_bad-unknown-unknown -fsycl %s 2>&1 \
41+
// RUN: not %clang -### -fsycl-link-targets=spir64_bad-unknown-unknown -fsycl %s 2>&1 \
4242
// RUN: | FileCheck -check-prefix=CHK-SYCL-FPGA-BAD-ADDLINK-TRIPLE %s
43-
// RUN: %clang_cl -### -fsycl-link-targets=spir64_bad-unknown-unknown -fsycl %s 2>&1 \
43+
// RUN: not %clang_cl -### -fsycl-link-targets=spir64_bad-unknown-unknown -fsycl %s 2>&1 \
4444
// RUN: | FileCheck -check-prefix=CHK-SYCL-FPGA-BAD-ADDLINK-TRIPLE %s
4545
// CHK-SYCL-FPGA-BAD-ADDLINK-TRIPLE: error: SYCL target is invalid: 'spir64_bad-unknown-unknown'
4646

clang/test/Driver/sycl-mlong-double.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// CHECK-SAME: "-mlong-double-64"
77

88
/// -mlong-double-128 and -mlong-double-80 are not supported for spir64.
9-
// RUN: %clangxx -c -fsycl -mlong-double-128 -target x86_64-unknown-linux-gnu %s -### 2>&1 | FileCheck --check-prefix=CHECK-128 %s
9+
// RUN: not %clangxx -c -fsycl -mlong-double-128 -target x86_64-unknown-linux-gnu %s -### 2>&1 | FileCheck --check-prefix=CHECK-128 %s
1010
// CHECK-128: error: unsupported option '-mlong-double-128' for target 'spir64-unknown-unknown'
1111
// CHECK-128-NOT: clang{{.*}} "-triple" "-spir64-unknown-unknown" {{.*}} "-mlong-double-128"
1212

13-
// RUN: %clangxx -c -fsycl -mlong-double-80 -target x86_64-unknown-linux-gnu %s -### 2>&1 | FileCheck --check-prefix=CHECK-80 %s
13+
// RUN: not %clangxx -c -fsycl -mlong-double-80 -target x86_64-unknown-linux-gnu %s -### 2>&1 | FileCheck --check-prefix=CHECK-80 %s
1414
// CHECK-80: error: unsupported option '-mlong-double-80' for target 'spir64-unknown-unknown'
1515
// CHECK-80-NOT: clang{{.*}} "-triple" "-spir64-unknown-unknown" {{.*}} "-mlong-double-80"

clang/test/Driver/sycl-no-bundle-offload-arch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// RUN: %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
1+
// RUN: not %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
22
// RUN: -fno-bundle-offload-arch -c %s 2>&1 \
33
// RUN: | FileCheck -check-prefix=CHK-BUNDLE-TAG-OBJ %s
44
//
55
// CHK-BUNDLE-TAG-OBJ-NOT: clang-offload-bundler{{.*}}-targets=sycl-nvptx64-nvidia-cuda-sm_"
66

7-
// RUN: %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
7+
// RUN: not %clangxx -### -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
88
// RUN: -fno-bundle-offload-arch %s 2>&1 \
99
// RUN: | FileCheck -check-prefix=CHK-BUNDLE-TAG %s
1010
//

clang/test/Driver/sycl-no-rdc-fat-archive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: echo "void foo(void) {}" > %t1.cpp
66
// RUN: %clangxx -target x86_64-unknown-linux-gnu -fsycl %t1.cpp -c -o %t1_bundle.o
77
// RUN: llvm-ar cr %t_lib.a %t1_bundle.o
8-
// RUN: %clang -### -fsycl -fno-sycl-rdc -fsycl-device-code-split=none --sysroot=%S/Inputs/SYCL %t_lib.a 2>&1 -ccc-print-phases | FileCheck %s
8+
// RUN: not %clang -### -fsycl -fno-sycl-rdc -fsycl-device-code-split=none --sysroot=%S/Inputs/SYCL %t_lib.a 2>&1 -ccc-print-phases | FileCheck %s
99
// RUN: %clang -### -fsycl -fno-sycl-rdc -fsycl-device-code-split=auto --sysroot=%S/Inputs/SYCL %t_lib.a 2>&1 -ccc-print-phases | FileCheck %s
1010
// RUN: %clang -### -fsycl -fno-sycl-rdc -fsycl-device-code-split=per_kernel --sysroot=%S/Inputs/SYCL %t_lib.a 2>&1 -ccc-print-phases | FileCheck %s
1111
// RUN: %clang -### -fsycl -fno-sycl-rdc -fsycl-device-code-split=per_source --sysroot=%S/Inputs/SYCL %t_lib.a 2>&1 -ccc-print-phases | FileCheck %s
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/// Check that -fnative-half-type is added automatically for SM versions
22
/// greater or equal to 53.
3-
// RUN: %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_53 %s -### 2>&1 | \
3+
// RUN: not %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_53 %s -### 2>&1 | \
44
// RUN: FileCheck --check-prefix=CHECK-53 %s
55
// CHECK-53: clang{{.*}} "-triple" "nvptx64-nvidia-cuda"{{.*}}"-fnative-half-type"
6-
// RUN: %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_70 %s -### 2>&1 | \
6+
// RUN: not %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_70 %s -### 2>&1 | \
77
// RUN: FileCheck --check-prefix=CHECK-70 %s
88
// CHECK-70: clang{{.*}} "-triple" "nvptx64-nvidia-cuda"{{.*}}"-fnative-half-type"
99

1010
/// As the default is set to SM_50, make sure that the option is not added.
11-
// RUN: %clangxx -fsycl -fsycl -fsycl-targets=nvidia64-nvidia-cuda %s -### 2>&1 | \
11+
// RUN: not %clangxx -fsycl -fsycl -fsycl-targets=nvidia64-nvidia-cuda %s -### 2>&1 | \
1212
// RUN: FileCheck --check-prefix=CHECK-DEFAULT %s
1313
// CHECK-DEFAULT-NOT: {{.*}}"-fnative-half-type"
1414

1515
/// SM < 53
16-
// RUN: %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_50 %s -### 2>&1 | \
16+
// RUN: not %clangxx -fsycl -fsycl-targets=nvidia_gpu_sm_50 %s -### 2>&1 | \
1717
// RUN: FileCheck --check-prefix=CHECK-50 %s
1818
// CHECK-50-NOT: {{.*}}"-fnative-half-type"

clang/test/Driver/sycl-nvptx-sqrt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// REQUIRES: nvptx-registered-target
22

3-
// RUN: %clang -### \
3+
// RUN: not %clang -### \
44
// RUN: -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
55
// RUN: -fsycl-fp32-prec-sqrt \
66
// RUN: %s \
77
// RUN: 2>&1 | FileCheck --check-prefix=CHECK-CORRECT %s
88

99
// CHECK-CORRECT: "-fcuda-prec-sqrt"
1010

11-
// RUN: %clang -### \
11+
// RUN: not %clang -### \
1212
// RUN: -fsycl -fsycl-targets=nvptx64-nvidia-cuda \
1313
// RUN: %s \
1414
// RUN: 2>&1 | FileCheck --check-prefix=CHECK-APPROX %s

clang/test/Driver/sycl-offload-amdgcn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// UNSUPPORTED: system-windows
44

55
// Check that the offload arch is required
6-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
6+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
77
// RUN: -fsycl-targets=amdgcn-amd-amdhsa %s 2>&1 \
88
// RUN: | FileCheck -check-prefix=CHK-ARCH %s
99
// CHK-ARCH: error: missing AMDGPU architecture for SYCL offloading; specify it with '-Xsycl-target-backend --offload-arch'
1010

1111
/// Check action graph.
12-
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
12+
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
1313
// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx906 \
1414
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 \
1515
// RUN: | FileCheck -check-prefix=CHK-ACTIONS %s
@@ -45,11 +45,11 @@
4545
// CHK-PHASES-NO-CC: 21: offload, "host-sycl (x86_64-unknown-linux-gnu)" {10}, "device-sycl (amdgcn-amd-amdhsa:gfx906)" {20}, image
4646

4747
/// Check that we only unbundle an archive once.
48-
// RUN: %clangxx -### -target x86_64-unknown-linux-gnu -fsycl \
48+
// RUN: not %clangxx -### -target x86_64-unknown-linux-gnu -fsycl \
4949
// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend \
5050
// RUN: --offload-arch=gfx906 %s -L%S/Inputs/SYCL -llin64 2>&1 \
5151
// RUN: | FileCheck -check-prefix=CHK-ARCHIVE %s
52-
// RUN: %clangxx -### -target x86_64-unknown-linux-gnu -fsycl \
52+
// RUN: not %clangxx -### -target x86_64-unknown-linux-gnu -fsycl \
5353
// RUN: -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend \
5454
// RUN: --offload-arch=gfx906 %s %S/Inputs/SYCL/liblin64.a 2>&1 \
5555
// RUN: | FileCheck -check-prefix=CHK-ARCHIVE %s

0 commit comments

Comments
 (0)