[libc-commits] [libc] [libc][math] Add unit tests for raising excepts in nextafter (PR #73556)
via libc-commits
libc-commits at lists.llvm.org
Mon Nov 27 11:20:14 PST 2023
================
@@ -24,10 +24,10 @@
LIBC_NAMESPACE::fputil::clear_except(FE_ALL_EXCEPT)
#define ASSERT_FP_EQ_WITH_UNDERFLOW(result, expected) \
- ASSERT_FP_EQ_WITH_EXCEPTION(result, expected, FE_INEXACT | FE_UNDERFLOW)
+ ASSERT_FP_EQ_WITH_EXCEPTION(result, expected, (FE_INEXACT | FE_UNDERFLOW))
----------------
lntue wrote:
Do you mind updating `ASSERT_FP_EXCEPT(expected)` and similar macros to:
```
LIBC_NAMESPACE::fputil::test_except(FE_ALL_EXCEPT) & (expected)
```
Thanks,
https://github.com/llvm/llvm-project/pull/73556
More information about the libc-commits
mailing list