summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-08-11 00:58:28 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-08-11 00:58:28 +0000
commit4afe4b20ce120fd46bd67e212b102019c2e40e81 (patch)
tree12a55e2c9c0f056d3e47f3f438539fef7d237ff4 /sysdeps
parent7ee06ef15827f8f2582a94b1ceaad47eaf502744 (diff)
downloadglibc-4afe4b20ce120fd46bd67e212b102019c2e40e81.tar.gz
glibc-4afe4b20ce120fd46bd67e212b102019c2e40e81.tar.xz
glibc-4afe4b20ce120fd46bd67e212b102019c2e40e81.zip
Add more tests of various libm functions.
This patch adds more tests of various libm functions found through
random test generation to give increased ulps on 32-bit x86.

Tested for x86_64 and x86.

	* math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
	atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
	expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
	* 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-ulps130
-rw-r--r--sysdeps/x86_64/fpu/libm-test-ulps24
2 files changed, 106 insertions, 48 deletions
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index dbc8f2f331..36037655f2 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -22,10 +22,14 @@ ildouble: 4
 ldouble: 2
 
 Function: "acosh_downward":
+double: 1
+idouble: 1
 ildouble: 6
 ldouble: 4
 
 Function: "acosh_towardzero":
+double: 1
+idouble: 1
 ildouble: 6
 ldouble: 4
 
@@ -34,6 +38,8 @@ ildouble: 4
 ldouble: 3
 
 Function: "asin":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -54,6 +60,8 @@ ildouble: 1
 ldouble: 1
 
 Function: "asinh":
+double: 1
+idouble: 1
 ildouble: 2
 ldouble: 2
 
@@ -134,6 +142,8 @@ ildouble: 1
 ldouble: 1
 
 Function: "atanh":
+double: 1
+idouble: 1
 ildouble: 3
 ldouble: 3
 
@@ -150,10 +160,11 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 4
+ildouble: 5
 ldouble: 3
 
 Function: "atanh_upward":
+double: 1
 idouble: 1
 ifloat: 1
 ildouble: 5
@@ -164,14 +175,20 @@ ildouble: 1
 ldouble: 1
 
 Function: "cabs_downward":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "cabs_towardzero":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "cabs_upward":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -304,6 +321,8 @@ ildouble: 2
 ldouble: 2
 
 Function: "carg":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -316,7 +335,9 @@ ildouble: 1
 ldouble: 1
 
 Function: "carg_towardzero":
+double: 1
 float: 1
+idouble: 1
 ifloat: 1
 ildouble: 1
 ldouble: 1
@@ -571,33 +592,35 @@ ldouble: 1
 
 Function: "cbrt":
 double: 1
+float: 1
 idouble: 1
-ildouble: 1
-ldouble: 1
+ifloat: 1
+ildouble: 2
+ldouble: 2
 
 Function: "cbrt_downward":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "cbrt_towardzero":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "cbrt_upward":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "ccos":
 double: 1
@@ -938,7 +961,8 @@ ildouble: 2
 ldouble: 2
 
 Function: "cosh":
-ildouble: 1
+double: 1
+ildouble: 2
 ldouble: 2
 
 Function: "cosh_downward":
@@ -1176,8 +1200,8 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "csqrt_towardzero":
 double: 1
@@ -1190,8 +1214,8 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "csqrt_upward":
 double: 1
@@ -1347,17 +1371,23 @@ ldouble: 1
 
 Function: "erf_downward":
 double: 1
+float: 1
 idouble: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
 Function: "erf_towardzero":
 double: 1
+float: 1
 idouble: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
 Function: "erf_upward":
+float: 1
+ifloat: 1
 ildouble: 1
 ldouble: 1
 
@@ -1366,21 +1396,21 @@ double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "erfc_downward":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 ildouble: 4
 ldouble: 4
 
 Function: "erfc_towardzero":
-double: 1
+double: 2
 float: 2
-idouble: 1
+idouble: 2
 ifloat: 2
 ildouble: 4
 ldouble: 4
@@ -1394,10 +1424,14 @@ ildouble: 4
 ldouble: 4
 
 Function: "exp":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "exp10":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -1456,10 +1490,14 @@ ildouble: 1
 ldouble: 1
 
 Function: "exp_upward":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "expm1":
+double: 1
+idouble: 1
 ildouble: 2
 ldouble: 2
 
@@ -1520,6 +1558,8 @@ ildouble: 4
 ldouble: 4
 
 Function: "hypot":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -1674,6 +1714,8 @@ ildouble: 1
 ldouble: 1
 
 Function: "log10":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -1702,6 +1744,8 @@ ildouble: 1
 ldouble: 1
 
 Function: "log1p":
+double: 1
+idouble: 1
 ildouble: 2
 ldouble: 2
 
@@ -1730,6 +1774,8 @@ ildouble: 3
 ldouble: 3
 
 Function: "log2":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -1754,22 +1800,32 @@ ildouble: 1
 ldouble: 1
 
 Function: "log_downward":
+double: 1
+idouble: 1
 ildouble: 2
 ldouble: 2
 
 Function: "log_towardzero":
+double: 1
+idouble: 1
 ildouble: 2
 ldouble: 2
 
 Function: "log_upward":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "pow":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
 Function: "pow10":
+double: 1
+idouble: 1
 ildouble: 1
 ldouble: 1
 
@@ -1860,6 +1916,7 @@ ildouble: 3
 ldouble: 3
 
 Function: "sinh":
+double: 1
 ildouble: 2
 ldouble: 2
 
@@ -1872,6 +1929,7 @@ ildouble: 4
 ldouble: 5
 
 Function: "sinh_towardzero":
+double: 1
 idouble: 1
 ifloat: 1
 ildouble: 3
@@ -1893,25 +1951,25 @@ ldouble: 1
 
 Function: "tan_downward":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: "tan_towardzero":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
 Function: "tan_upward":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
+ifloat: 2
 ildouble: 2
 ldouble: 2
 
@@ -1944,13 +2002,13 @@ double: 2
 float: 3
 idouble: 2
 ifloat: 3
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tgamma_downward":
-double: 2
+double: 3
 float: 3
-idouble: 2
+idouble: 3
 ifloat: 3
 ildouble: 3
 ldouble: 3
@@ -1960,16 +2018,16 @@ double: 3
 float: 3
 idouble: 3
 ifloat: 3
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tgamma_upward":
 double: 3
-float: 3
+float: 4
 idouble: 3
-ifloat: 3
-ildouble: 3
-ldouble: 3
+ifloat: 4
+ildouble: 4
+ldouble: 4
 
 Function: "y0":
 double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index de7d420aef..b5f2680d04 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -1276,8 +1276,8 @@ double: 4
 float: 3
 idouble: 4
 ifloat: 3
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "csqrt_towardzero":
 double: 3
@@ -1292,8 +1292,8 @@ double: 4
 float: 3
 idouble: 4
 ifloat: 3
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "csqrt_upward":
 double: 5
@@ -1476,8 +1476,8 @@ double: 2
 float: 2
 idouble: 2
 ifloat: 2
-ildouble: 2
-ldouble: 2
+ildouble: 3
+ldouble: 3
 
 Function: "erfc_downward":
 double: 4
@@ -2226,8 +2226,8 @@ double: 4
 float: 5
 idouble: 4
 ifloat: 5
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tgamma_downward":
 double: 4
@@ -2242,16 +2242,16 @@ double: 5
 float: 5
 idouble: 5
 ifloat: 5
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "tgamma_upward":
 double: 5
 float: 5
 idouble: 5
 ifloat: 5
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "y0":
 double: 2