Skip to content

Commit 7578c31

Browse files
committed
[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.
1 parent c656f29 commit 7578c31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/test/src/math/smoke/RoundToIntegerTest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "src/__support/CPP/algorithm.h"
1313
#include "src/__support/FPUtil/FEnvImpl.h"
1414
#include "src/__support/FPUtil/FPBits.h"
15+
#include "src/__support/macros/properties/architectures.h"
1516
#include "test/UnitTest/FEnvSafeTest.h"
1617
#include "test/UnitTest/FPMatcher.h"
1718
#include "test/UnitTest/Test.h"
@@ -50,10 +51,12 @@ class RoundToIntegerTestTemplate
5051
// 0 for errno and exceptions, but this doesn't hold for
5152
// all math functions using RoundToInteger test:
5253
// https://github.com/llvm/llvm-project/pull/88816
54+
#ifndef LIBC_TARGET_ARCH_IS_GPU
5355
if (expectError) {
5456
ASSERT_FP_EXCEPTION(FE_INVALID);
5557
ASSERT_MATH_ERRNO(EDOM);
5658
}
59+
#endif
5760
}
5861

5962
public:

0 commit comments

Comments
 (0)