This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add further tests of cosh and sinh [committed]


This patch adds some further randomly-generated tests of cosh and sinh
that are observed to increase ulps on x86_64.

Tested for x86_64 and x86 and ulps updated accordingly.  Committed.

(auto-libm-test-out diffs omitted below.)

2015-04-30  Joseph Myers  <joseph@codesourcery.com>

	* math/auto-libm-test-in: Add more tests of cosh and sinh.
	* math/auto-libm-test-out: Regenerated.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 85fc762..8403156 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -879,6 +879,7 @@ cosh 0x1p-20
 cosh -1
 cosh 50
 cosh -0xb.60713p+0
+cosh -0x3.cee48p+0
 # GCC bug 59666: results on directed rounding may be incorrect.
 cosh max no-test-inline xfail-rounding:ldbl-128ibm
 cosh -max no-test-inline xfail-rounding:ldbl-128ibm
@@ -2202,6 +2203,10 @@ sinh -0x7.a8c5f68c81fae5dp-4
 sinh 0x3.4a037p-4
 sinh -0x3.eba6dbcbeceb2p-4
 sinh -0x2.55f63p+0
+sinh -0x3.ca68c96337692p-4
+sinh -0x3.92da05a85024b314p-4
+sinh -0x3.3e6292ed442d450cp-4
+sinh 0x7.6e259d2436fc4p-4
 
 sqrt 0
 sqrt -0
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index ef8918e..cb93177 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -1740,22 +1740,22 @@ ildouble: 2
 ldouble: 2
 
 Function: "sinh":
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "sinh_downward":
-ildouble: 3
-ldouble: 4
+ildouble: 4
+ldouble: 5
 
 Function: "sinh_towardzero":
-ildouble: 2
-ldouble: 3
+ildouble: 3
+ldouble: 4
 
 Function: "sinh_upward":
 double: 1
 float: 1
 ildouble: 4
-ldouble: 4
+ldouble: 5
 
 Function: "tan":
 float: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index bbb6abc..e943da1 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -986,7 +986,7 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
+ildouble: 2
 ldouble: 2
 
 Function: "cosh_upward":
@@ -1880,32 +1880,32 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "sinh_downward":
-double: 2
+double: 3
 float: 3
-idouble: 2
+idouble: 3
 ifloat: 3
-ildouble: 4
-ldouble: 4
+ildouble: 5
+ldouble: 5
 
 Function: "sinh_towardzero":
 double: 2
 float: 2
 idouble: 2
 ifloat: 2
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "sinh_upward":
 double: 2
 float: 3
 idouble: 2
 ifloat: 3
-ildouble: 4
-ldouble: 4
+ildouble: 5
+ldouble: 5
 
 Function: "tan":
 ildouble: 1

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]