From 52c09e4d28744e4e25d1aede3ea12fa4bc7b2ae9 Mon Sep 17 00:00:00 2001 From: Chris Perkins Date: Fri, 4 Sep 2026 13:28:34 -0700 Subject: [PATCH] guard on tests, note about VS 2019 --- .../DeviceLib/exp/exp-std-complex-double-edge-cases.cpp | 7 ++++++- .../DeviceLib/exp/exp-std-complex-float-edge-cases.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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(); }