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 more tests of cosh, sinh [committed]


This patch adds some 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-03-24  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 91d2ae6..fbfa562 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -780,6 +780,7 @@ cosh 0x1p-5
 cosh 0x1p-20
 cosh -1
 cosh 50
+cosh -0xb.60713p+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
@@ -2089,6 +2090,16 @@ sinh 0x8p-32
 sinh 22
 sinh 23
 sinh 24
+sinh -0x7.55d7f8p-4
+sinh -0x3.f392f8p-4
+sinh 0x1.c56446p+0
+sinh 0x6.cac622d51eebcp-4
+sinh -0x5.c4cb02389c094p+0
+sinh -0x1.646850f515ef2p+0
+sinh -0x7.a8c5f68c81fae5dp-4
+sinh 0x3.4a037p-4
+sinh -0x3.eba6dbcbeceb2p-4
+sinh -0x2.55f63p+0
 
 sqrt 0
 sqrt -0
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 253c3e6..a418998 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -1709,20 +1709,21 @@ ldouble: 2
 
 Function: "sinh":
 ildouble: 1
+ldouble: 1
 
 Function: "sinh_downward":
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 4
 
 Function: "sinh_towardzero":
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 3
 
 Function: "sinh_upward":
 double: 1
 float: 1
-ildouble: 1
-ldouble: 1
+ildouble: 4
+ldouble: 4
 
 Function: "tan":
 float: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 0c3943b..56752ca 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -940,7 +940,7 @@ double: 1
 float: 2
 idouble: 1
 ifloat: 2
-ildouble: 1
+ildouble: 2
 ldouble: 3
 
 Function: Real part of "cpow":
@@ -1821,25 +1821,37 @@ idouble: 1
 ildouble: 2
 ldouble: 2
 
-Function: "sinh_downward":
+Function: "sinh":
 double: 1
+float: 1
 idouble: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
+Function: "sinh_downward":
+double: 2
+float: 3
+idouble: 2
+ifloat: 3
+ildouble: 4
+ldouble: 4
+
 Function: "sinh_towardzero":
-double: 1
-idouble: 1
-ildouble: 1
-ldouble: 1
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sinh_upward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-ildouble: 1
-ldouble: 1
+double: 2
+float: 3
+idouble: 2
+ifloat: 3
+ildouble: 4
+ldouble: 4
 
 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]