Skip to content

Commit a7d8281

Browse files
authored
[SYCL][ESIMD][E2E] Fix another LSC test on Windows (#14603)
Same as 9b4b4dd but for this version of the test. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 0b60f43 commit a7d8281

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32_64.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: arch-intel_gpu_pvc || gpu-intel-dg2
9-
// RUN: %{build} -o %t.out
9+
10+
// Windows compiler causes this test to fail due to handling of floating
11+
// point arithmetics. Fixing requires using
12+
// -ffp-exception-behavior=maytrap option to disable some floating point
13+
// optimizations to produce correct result.
14+
// DEFINE: %{fpflags} = %if cl_options %{/clang:-ffp-exception-behavior=maytrap%} %else %{-ffp-exception-behavior=maytrap%}
15+
16+
// RUN: %{build} %{fpflags} -o %t.out
1017
// RUN: %{run} %t.out
1118

1219
// 64 bit offset variant of the test - uses 64 bit offsets.

0 commit comments

Comments
 (0)