Fix asinh missing underflows (bug 16350).
commit8db3cdefefe39e9d42b05b1610a63190e9f7fba4
authorJoseph Myers <joseph@codesourcery.com>
Thu, 18 Jun 2015 23:27:41 +0000 (18 23:27 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 18 Jun 2015 23:27:41 +0000 (18 23:27 +0000)
treeb4ae0196406ac58ad51d28aacc95b074341c179c
parenta7a3c24632904b5b1d7e47eaf6b955bba6246b8f
Fix asinh missing underflows (bug 16350).

Similar to various other bugs in this area, some asinh implementations
do not raise the underflow exception for subnormal arguments, when the
result is tiny and inexact.  This patch forces the exception in a
similar way to previous fixes.

Tested for x86_64, x86 and mips64.

[BZ #16350]
* sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
for arguments with small absolute value.
* sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
* sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
* sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
(__asinh): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
(__asinhf): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
(__asinhl): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
(__asinhl): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
(__asinhl): Force underflow exception for arguments with small
absolute value.
* math/auto-libm-test-in: Do not mark underflow exceptions as
possibly missing for bug 16350.
* math/auto-libm-test-out: Regenerated.
12 files changed:
ChangeLog
NEWS
math/auto-libm-test-in
math/auto-libm-test-out
sysdeps/i386/fpu/s_asinh.S
sysdeps/i386/fpu/s_asinhf.S
sysdeps/i386/fpu/s_asinhl.S
sysdeps/ieee754/dbl-64/s_asinh.c
sysdeps/ieee754/flt-32/s_asinhf.c
sysdeps/ieee754/ldbl-128/s_asinhl.c
sysdeps/ieee754/ldbl-128ibm/s_asinhl.c
sysdeps/ieee754/ldbl-96/s_asinhl.c