about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-05-06 17:30:18 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-05-06 17:30:18 +0000
commit471dffa12cd5ec30ef59a777f24b13825482aeaf (patch)
treea48243429365f4573599373550db2ec9e676ef66 /sysdeps
parenteda361c8d92f7529c215b80962c2f74b980ee2bf (diff)
downloadglibc-471dffa12cd5ec30ef59a777f24b13825482aeaf.tar.gz
glibc-471dffa12cd5ec30ef59a777f24b13825482aeaf.tar.xz
glibc-471dffa12cd5ec30ef59a777f24b13825482aeaf.zip
Add more tests of acosh, atanh, cos, csqrt, erfc, sin, sincos.
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.

	* 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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/fpu/libm-test-ulps16
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps36
2 files changed, 26 insertions, 26 deletions
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 002f09a859..67912eff2d 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 7448a4d017..c29ec2cd9f 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