From 5e29dd573777197fc4d12c1bdea8f6d04e505391 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 6 Aug 2015 23:01:09 +0000 Subject: Fix sinh missing underflows (bug 16519). Similar to various other bugs in this area, some sinh 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, mips64 and powerpc. [BZ #16519] * sysdeps/ieee754/dbl-64/e_sinh.c: Include . (__ieee754_sinh): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/e_sinhf.c: Include . (__ieee754_sinhf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include . (__ieee754_sinhl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of sinh. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. --- math/auto-libm-test-in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'math/auto-libm-test-in') diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index c17f6f5..cc9b7fd 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -2528,6 +2528,10 @@ sinh 0x7.6e259d2436fc4p-4 sinh 0x3.d6e088p-4 sinh -0x7.688eap-4 sinh -0xd.dce79p-4 +sinh min +sinh -min +sinh min_subnorm +sinh -min_subnorm sqrt 0 sqrt -0 -- cgit v1.1