Skip to content

Commit f83c904

Browse files
[SYCL][E2E] Fix floating point division precision test on MSVC (#12144)
This commit fixes the flag passed to the compiler when using the MSVC-compatible compiler options. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent eba7b7e commit f83c904

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/test-e2e/Basic/float_division_precise.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %{build} -ffp-model=precise -o %t.out
1+
// DEFINE: %{preciseflag} = %if cl_options %{/fp:precise%} %else %{-ffp-model=precise%}
2+
3+
// RUN: %{build} %{preciseflag} -o %t.out
24
// RUN: %{run} %t.out
35

46
// Tests that -ffp-model=precise causes floating point division to be the same

0 commit comments

Comments
 (0)