Skip to content

Commit d0b0d75

Browse files
committed
Update test
Make sure that if -fsycl-range-rounding=force is used, there is no emission of the unrounded range kernel at -O0 and -Od
1 parent 2e60a20 commit d0b0d75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/test/Driver/sycl-offload.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,14 @@
527527
// RUN: | FileCheck -check-prefix=CHK-DISABLE-RANGE-ROUNDING %s
528528
// RUN: %clang_cl -### -fsycl -fsycl-targets=spir64 -Od %s 2>&1 \
529529
// RUN: | FileCheck -check-prefix=CHK-DISABLE-RANGE-ROUNDING %s
530+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
531+
// RUN: -O0 -fsycl-range-rounding=force %s 2>&1 \
532+
// RUN: | FileCheck -check-prefix=CHK-OVERRIDE-RANGE-ROUNDING %s
533+
// RUN: %clang_cl -### -fsycl -Od %s 2>&1 -fsycl-range-rounding=force %s 2>&1 \
534+
// RUN: | FileCheck -check-prefix=CHK-OVERRIDE-RANGE-ROUNDING %s
530535
// CHK-DISABLE-RANGE-ROUNDING: "-fsycl-range-rounding=disable"
536+
// CHK-OVERRIDE-RANGE-ROUNDING: "-fsycl-range-rounding=force"
537+
// CHK-OVERRIDE-RANGE-ROUNDING-NOT: "-fsycl-range-rounding=disable"
531538

532539
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
533540
// RUN: -fsycl-targets=spir64 -O2 %s 2>&1 \

0 commit comments

Comments
 (0)