[libc-commits] [libc] [libc][math] Fix double-rounding errors with denormal inputs for hypot function. (PR #208247)
via libc-commits
libc-commits at lists.llvm.org
Thu Jul 16 01:17:05 PDT 2026
zimmermann6 wrote:
> * hypot(0, qNaN): this seems to be raised somewhere inside check_worst.c,
> because when I explicitly clear and retest the invalid except, the
> FE_INVALID is not raised. Can you double check it?
I have fixed the CORE-MATH test suite and now I get no failure any more
with LLVM libc:
***@***.***:~/svn/core-math$ EXTRA_CFLAGS=-DCORE_MATH_UNDERFLOW_BEFORE CORE_MATH_CHECK_STD=true LIBM=$L ./check.sh hypot
Running worst cases check in --rndn mode...
216432 tests passed, 0 failure(s)
Running worst cases check in --rndz mode...
216432 tests passed, 0 failure(s)
Running worst cases check in --rndu mode...
216432 tests passed, 0 failure(s)
Running worst cases check in --rndd mode...
216432 tests passed, 0 failure(s)
Paul
https://github.com/llvm/llvm-project/pull/208247
More information about the libc-commits
mailing list