diff mbox

Add more tests of acosh, atanh, cos, csqrt, erfc, sin, sincos [committed]

Message ID alpine.DEB.2.10.1505061730470.21257@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers May 6, 2015, 5:31 p.m. UTC
This patch adds more randomly-generated tests of various libm
functions 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-05-06  Joseph Myers  <joseph@codesourcery.com>

	* math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
	csqrt, erfc, sin and sincos.
	* math/auto-libm-test-out: Regenerated.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
diff mbox

Patch

diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 20f3714..155bea1 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -115,6 +115,7 @@  acosh 0x1.80a368p+0
 acosh 0x1.0b9d3e9fc19fbp+0
 acosh 0x1.11eab6p+0
 acosh 0x1.0fffaap+0
+acosh 0x1.068e0eca105a6p+0
 acosh max no-test-inline
 
 asin 0
@@ -378,6 +379,8 @@  atanh 0x2.251b2a64c85dep-4
 atanh -0x2.e3458cp-4
 atanh 0x3.91d9f3c80c72d7acp-4
 atanh -0x2.6c52c26567198p-4
+atanh 0x3.a274ecp-4
+atanh -0x3.f0f519a687b64p-8
 # Bug 16352: underflow exception may be missing.
 atanh 0x1p-500 missing-underflow
 atanh 0x1p-5000 missing-underflow
@@ -888,6 +891,7 @@  cos min_subnorm
 cos -min_subnorm
 cos -0x3.3de320f6be87ep+1020
 cos 0xe.9f1e5bc3bb88p+112
+cos 0x4.7857dp+68
 
 cosh 0
 cosh -0
@@ -981,6 +985,7 @@  csqrt 0x5.9cc21p-4 -0x1.fb1ec91b40dcdp+0
 csqrt -0x7.31291c9fdae04p-160 -0x8p-152
 csqrt 0x1.d60caep+0 0x7.a7d468p+0
 csqrt -0xb.e2bc1cd6eaa7p-180 0x8p-152
+csqrt 0xd.25d559ac5baap-168 0x8p-152
 
 csqrt 0x1.fffffep+127 0x1.fffffep+127
 csqrt 0x1.fffffep+127 1.0
@@ -1157,6 +1162,7 @@  erfc 0xd.28abfp-4
 erfc 0x1.5289fep+0
 erfc 0x4.b48498p+0
 erfc 0x2.f8646cp+0
+erfc 0x1.514548p+0
 
 exp 0
 exp -0
@@ -2284,6 +2290,7 @@  sin 10
 sin 0x1.2001469775ce6p32
 sin -0x3.3de320f6be87ep+1020
 sin 0xe.9f1e5bc3bb88p+112
+sin 0x4.7857dp+68
 
 sincos 0
 sincos -0
@@ -2305,6 +2312,7 @@  sincos 0x1p+50
 sincos 0x1p+28
 sincos -0x3.3de320f6be87ep+1020
 sincos 0xe.9f1e5bc3bb88p+112
+sincos 0x4.7857dp+68
 
 sinh 0
 sinh -0
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 002f09a..67912ef 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -18,19 +18,19 @@  ildouble: 2
 ldouble: 2
 
 Function: "acosh":
-ildouble: 2
+ildouble: 4
 ldouble: 2
 
 Function: "acosh_downward":
-ildouble: 4
+ildouble: 6
 ldouble: 4
 
 Function: "acosh_towardzero":
-ildouble: 4
+ildouble: 6
 ldouble: 4
 
 Function: "acosh_upward":
-ildouble: 3
+ildouble: 4
 ldouble: 3
 
 Function: "asin":
@@ -1756,8 +1756,8 @@  ldouble: 1
 Function: "sin_upward":
 double: 1
 idouble: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sincos":
 ildouble: 1
@@ -1778,8 +1778,8 @@  ldouble: 2
 Function: "sincos_upward":
 double: 1
 idouble: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sinh":
 ildouble: 2
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index 7448a4d..c29ec2c 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -33,9 +33,9 @@  ldouble: 2
 
 Function: "acosh":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
@@ -56,9 +56,9 @@  ildouble: 4
 ldouble: 4
 
 Function: "acosh_upward":
-double: 1
+double: 2
 float: 1
-idouble: 1
+idouble: 2
 ifloat: 1
 ildouble: 3
 ldouble: 3
@@ -187,16 +187,16 @@  ldouble: 1
 
 Function: "atanh":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 3
 ldouble: 3
 
 Function: "atanh_downward":
-double: 2
+double: 3
 float: 2
-idouble: 2
+idouble: 3
 ifloat: 2
 ildouble: 5
 ldouble: 5
@@ -1200,9 +1200,9 @@  ildouble: 4
 ldouble: 4
 
 Function: Imaginary part of "csqrt_downward":
-double: 3
+double: 4
 float: 3
-idouble: 3
+idouble: 4
 ifloat: 3
 ildouble: 3
 ldouble: 3
@@ -1216,9 +1216,9 @@  ildouble: 4
 ldouble: 4
 
 Function: Imaginary part of "csqrt_towardzero":
-double: 3
+double: 4
 float: 3
-idouble: 3
+idouble: 4
 ifloat: 3
 ildouble: 3
 ldouble: 3
@@ -1425,9 +1425,9 @@  ldouble: 4
 
 Function: "erfc_upward":
 double: 4
-float: 5
+float: 6
 idouble: 4
-ifloat: 5
+ifloat: 6
 ildouble: 4
 ldouble: 4
 
@@ -1906,8 +1906,8 @@  ldouble: 1
 Function: "sin_upward":
 double: 1
 idouble: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sincos":
 ildouble: 1
@@ -1928,8 +1928,8 @@  ldouble: 2
 Function: "sincos_upward":
 double: 1
 idouble: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "sinh":
 double: 1