Skip to content

Commit 5b94b37

Browse files
committed
Add clang driver test and update one more SYCL runtime test.
1 parent 0909cfb commit 5b94b37

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/// Check that optimizations for sycl device are enabled by default:
2+
// RUN: %clang -### -fsycl %s 2>&1 \
3+
// RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s
4+
// RUN: %clang -### -fsycl -fsycl-device-only %s 2>&1 \
5+
// RUN: | FileCheck -check-prefix=CHECK-DEFAULT %s
6+
// CHECK-DEFAULT-NOT: "-fno-sycl-std-optimizations"
7+
// CHECK-DEFAULT-NOT: "-disable-llvm-passes"
8+
9+
/// Check "-fno-sycl-std-optimizations" is passed to the front-end:
10+
// RUN: %clang -### -fsycl -fno-sycl-std-optimizations %s 2>&1 \
11+
// RUN: | FileCheck -check-prefix=CHECK-NO-SYCL-STD-OPTS %s
12+
// RUN: %clang -### -fsycl -fsycl-device-only -fno-sycl-std-optimizations %s 2>&1 \
13+
// RUN: | FileCheck -check-prefix=CHECK-NO-SYCL-STD-OPTS %s
14+
// CHECK-NO-SYCL-STD-OPTS: "-fno-sycl-std-optimizations"

sycl/test/sub_group/generic-shuffle.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// CUDA compilation and runtime do not yet support sub-groups.
33
// #2245 failed on OpenCL CPU (2020.10.7.0.15) with avx2 instruction set
44
//
5-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
5+
// RUN: %clangxx -fsycl -fno-sycl-std-optimizations -fsycl-targets=%sycl_triple %s -o %t.out
66
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
77
// RUN: %CPU_RUN_PLACEHOLDER %t.out
88
// RUN: %GPU_RUN_PLACEHOLDER %t.out

0 commit comments

Comments
 (0)