diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-06-05 09:53:51 -0500 |
---|---|---|
committer | Joseph Huber <huberjn@outlook.com> | 2024-06-05 09:54:34 -0500 |
commit | 7578c31823ff1b23f1f15607f8abf57bc173b843 (patch) | |
tree | ac018ea226b8f6ecdb28397d61678e4885d1a6a6 /libc/test | |
parent | c656f29b32c26f54b71b2fef5ccdd38427beb2ba (diff) | |
download | llvm-7578c31823ff1b23f1f15607f8abf57bc173b843.zip llvm-7578c31823ff1b23f1f15607f8abf57bc173b843.tar.gz llvm-7578c31823ff1b23f1f15607f8abf57bc173b843.tar.bz2 |
[libc] Disable fpexcept testing on the GPU
Summary:
These new tests fails on the GPU due to the exception testing. Disable
it for now because these aren't supported and can't be supported on
NVPTX.
Diffstat (limited to 'libc/test')
-rw-r--r-- | libc/test/src/math/smoke/RoundToIntegerTest.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/test/src/math/smoke/RoundToIntegerTest.h b/libc/test/src/math/smoke/RoundToIntegerTest.h index 02ae601..fd3fbde 100644 --- a/libc/test/src/math/smoke/RoundToIntegerTest.h +++ b/libc/test/src/math/smoke/RoundToIntegerTest.h @@ -12,6 +12,7 @@ #include "src/__support/CPP/algorithm.h" #include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FPBits.h" +#include "src/__support/macros/properties/architectures.h" #include "test/UnitTest/FEnvSafeTest.h" #include "test/UnitTest/FPMatcher.h" #include "test/UnitTest/Test.h" @@ -50,10 +51,12 @@ private: // 0 for errno and exceptions, but this doesn't hold for // all math functions using RoundToInteger test: // https://github.com/llvm/llvm-project/pull/88816 +#ifndef LIBC_TARGET_ARCH_IS_GPU if (expectError) { ASSERT_FP_EXCEPTION(FE_INVALID); ASSERT_MATH_ERRNO(EDOM); } +#endif } public: |