diff --git a/sycl/test-e2e/DeviceLib/exp/exp-std-complex-double-edge-cases.cpp b/sycl/test-e2e/DeviceLib/exp/exp-std-complex-double-edge-cases.cpp index d56e4eee7aa42..1b1a64342c084 100644 --- a/sycl/test-e2e/DeviceLib/exp/exp-std-complex-double-edge-cases.cpp +++ b/sycl/test-e2e/DeviceLib/exp/exp-std-complex-double-edge-cases.cpp @@ -4,10 +4,15 @@ // REQUIRES: aspect-fp64 // UNSUPPORTED: target-amd || target-nvidia // UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support. + +// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%} // -// RUN: %{build} -o %t.out +// RUN: %{build} %{mathflags} -o %t.out // RUN: %{run} %t.out +// NOTE: on Windows this test will fail with MSVC 2019 STL headers +// due to a bug in those headers. + #include "exp-std-complex-edge-cases.hpp" int main() { return test(); } diff --git a/sycl/test-e2e/DeviceLib/exp/exp-std-complex-float-edge-cases.cpp b/sycl/test-e2e/DeviceLib/exp/exp-std-complex-float-edge-cases.cpp index 7868929ed7f72..7ee96df83ce25 100644 --- a/sycl/test-e2e/DeviceLib/exp/exp-std-complex-float-edge-cases.cpp +++ b/sycl/test-e2e/DeviceLib/exp/exp-std-complex-float-edge-cases.cpp @@ -4,9 +4,14 @@ // UNSUPPORTED: target-amd || target-nvidia // UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support. // -// RUN: %{build} -o %t.out +// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%} +// +// RUN: %{build} %{mathflags} -o %t.out // RUN: %{run} %t.out +// NOTE: on Windows this test will fail with MSVC 2019 STL headers +// due to a bug in those headers. + #include "exp-std-complex-edge-cases.hpp" int main() { return test(); }