diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-06-18 23:27:41 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-06-18 23:27:41 +0000 |
commit | 8db3cdefefe39e9d42b05b1610a63190e9f7fba4 (patch) | |
tree | b4ae0196406ac58ad51d28aacc95b074341c179c /math/auto-libm-test-in | |
parent | a7a3c24632904b5b1d7e47eaf6b955bba6246b8f (diff) | |
download | glibc-8db3cdefefe39e9d42b05b1610a63190e9f7fba4.zip glibc-8db3cdefefe39e9d42b05b1610a63190e9f7fba4.tar.gz glibc-8db3cdefefe39e9d42b05b1610a63190e9f7fba4.tar.bz2 |
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.
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r-- | math/auto-libm-test-in | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index 7546cca..6ec4bc6 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -218,13 +218,12 @@ asinh 0x7.d8e5a8p-4 asinh -0x7.63a06320c42e4p-4 asinh 0x6.f4a93p-4 asinh -0x7.88bcc8p-4 -# Bug 16350: underflow exception may be missing. -asinh 0x1p-500 missing-underflow -asinh 0x1p-5000 missing-underflow -asinh min missing-underflow -asinh -min missing-underflow -asinh min_subnorm missing-underflow -asinh -min_subnorm missing-underflow +asinh 0x1p-500 +asinh 0x1p-5000 +asinh min +asinh -min +asinh min_subnorm +asinh -min_subnorm asinh max no-test-inline asinh -max no-test-inline |