[libc-commits] [libc] [libc] Enable exp10m1f on RISC-V (PR #138768)
via libc-commits
libc-commits at lists.llvm.org
Tue May 6 18:01:57 PDT 2025
================
@@ -89,7 +89,8 @@ TEST_F(LlvmLibcExp10m1fTest, InFloatRange) {
// in the single-precision floating point range, then ignore comparing with
// MPFR result as MPFR can still produce valid results because of its
// wider precision.
- if (isnan(result) || isinf(result) || LIBC_NAMESPACE::libc_errno != 0)
+ if (FPBits(result).is_nan() || FPBits(result).is_inf() ||
+ LIBC_NAMESPACE::libc_errno != 0)
----------------
overmighty wrote:
```suggestion
if (FPBits(result).is_inf_or_nan() || LIBC_NAMESPACE::libc_errno != 0)
```
https://github.com/llvm/llvm-project/pull/138768
More information about the libc-commits
mailing list