Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] Modify broken macros for fixed errors #1838

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/support/test_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@
#define _PSTL_ICC_TEST_COMPLEX_POLAR_BROKEN_TEST_EDGES _PSTL_TEST_COMPLEX_OP_BROKEN_IN_INTEL_LLVM_COMPILER
#define _PSTL_ICC_TEST_COMPLEX_EXP_BROKEN_TEST_EDGES (20240201 < __INTEL_LLVM_COMPILER && __INTEL_LLVM_COMPILER <= _PSTL_TEST_LATEST_INTEL_LLVM_COMPILER)
#define _PSTL_ICC_TEST_COMPLEX_COSH_BROKEN_TEST_EDGES (20240201 < __INTEL_LLVM_COMPILER && __INTEL_LLVM_COMPILER <= _PSTL_TEST_LATEST_INTEL_LLVM_COMPILER)
#define _PSTL_TEST_COMPLEX_ACOS_BROKEN_IN_KERNEL (_PSTL_TEST_COMPLEX_OP_BROKEN_IN_INTEL_LLVM_COMPILER && __SYCL_DEVICE_ONLY__)
#define _PSTL_TEST_COMPLEX_ACOS_BROKEN_IN_KERNEL (__INTEL_LLVM_COMPILER <= 20240200 && __SYCL_DEVICE_ONLY__)
#define _PSTL_TEST_COMPLEX_EXP_BROKEN _PSTL_TEST_COMPLEX_OP_BROKEN_IN_INTEL_LLVM_COMPILER
#define _PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL (_PSTL_TEST_COMPLEX_OP_BROKEN_IN_INTEL_LLVM_COMPILER && __SYCL_DEVICE_ONLY__)
#define _PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL (__INTEL_LLVM_COMPILER <= 20240200 && __SYCL_DEVICE_ONLY__)

#define _PSTL_ICC_TEST_COMPLEX_ISINF_BROKEN (_MSVC_STL_VERSION && __INTEL_LLVM_COMPILER)
#define _PSTL_ICC_TEST_COMPLEX_ISNAN_BROKEN (_MSVC_STL_VERSION && __INTEL_LLVM_COMPILER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ void test_edges()
else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag()))
{
#if !_PSTL_TEST_COMPLEX_ACOS_BROKEN_IN_KERNEL
assert(is_about(r.real(), pi/2)); // testcases[45]
assert(std::isinf(r.imag())); // testcases[147]
assert(is_about(r.real(), pi/2));
assert(std::isinf(r.imag()));
#endif
assert(std::signbit(testcases[i].imag()) != std::signbit(r.imag()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void test_edges()
}
else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag()))
{
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL // testcases[55]
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL
assert(r.real() == (testcases[i].real() > 0 ? 1 : -1));
#endif
assert(r.imag() == 0);
Expand All @@ -64,14 +64,14 @@ void test_edges()
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN
else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag()))
{
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL // testcases[44]
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL
assert(r.real() == (testcases[i].real() > 0 ? 1 : -1));
#endif
assert(r.imag() == 0);
}
else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag()))
{
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL // testcases[33]
#if !_PSTL_TEST_COMPLEX_TANH_BROKEN_IN_KERNEL
assert(r.real() == (testcases[i].real() > 0 ? 1 : -1));
#endif
assert(r.imag() == 0);
Expand Down
Loading