diff mbox

Add more tests of acosh, asinh and atanh [committed]

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

Commit Message

Joseph Myers March 25, 2015, 10:22 p.m. UTC
This patch adds some randomly-generated tests of acosh, asinh and
atanh 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-25  Joseph Myers  <joseph@codesourcery.com>

	* math/auto-libm-test-in: Add more tests of acosh, asinh and
	atanh.
	* 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 5dd3237..939f6ea 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -111,6 +111,9 @@  acosh 0x1p59
 acosh 0x1p100
 acosh 0x1p500
 acosh 0x1p5000
+acosh 0x1.80a368p+0
+acosh 0x1.0b9d3e9fc19fbp+0
+acosh 0x1.11eab6p+0
 acosh max no-test-inline
 
 asin 0
@@ -205,6 +208,14 @@  asinh 0x1p-57
 asinh 0x1p-58
 asinh 0x1p-59
 asinh 0x1p-100
+asinh -0x3.d26bb4p-4
+asinh -0x3.bdeef4p-4
+asinh -0x7.fc7fc8p-8
+asinh -0x3.b94a52e6913c2p-4
+asinh 0x7.d8e5a8p-4
+asinh -0x7.63a06320c42e4p-4
+asinh 0x6.f4a93p-4
+asinh -0x7.88bcc8p-4
 # Bug 16350: underflow exception may be missing.
 asinh 0x1p-500 missing-underflow
 asinh 0x1p-5000 missing-underflow
@@ -340,6 +351,15 @@  atanh 0x1p-57
 atanh 0x1p-58
 atanh 0x1p-59
 atanh 0x1p-100
+atanh -0x6.e6c77p-20
+atanh 0x3.2ca824p-4
+atanh -0x1.cc1d66p-4
+atanh -0xf.cd3809ca8fd28p-4 no-test-inline
+atanh -0x1.04f386p-4
+atanh -0x2.084568p-4
+atanh -0x3.e0a5d8p-4
+atanh 0x3.dfb1f5db0ceccp-4
+atanh 0x2.251b2a64c85dep-4
 # Bug 16352: underflow exception may be missing.
 atanh 0x1p-500 missing-underflow
 atanh 0x1p-5000 missing-underflow
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 4d0246a..2c823ef 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -18,20 +18,20 @@  ildouble: 2
 ldouble: 2
 
 Function: "acosh":
-ildouble: 1
-ldouble: 1
-
-Function: "acosh_downward":
 ildouble: 2
 ldouble: 2
 
+Function: "acosh_downward":
+ildouble: 4
+ldouble: 4
+
 Function: "acosh_towardzero":
-ildouble: 2
-ldouble: 2
+ildouble: 4
+ldouble: 4
 
 Function: "acosh_upward":
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 3
 
 Function: "asin":
 ildouble: 1
@@ -54,20 +54,20 @@  ildouble: 1
 ldouble: 1
 
 Function: "asinh":
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "asinh_downward":
 double: 1
 float: 1
-ildouble: 3
-ldouble: 3
+ildouble: 5
+ldouble: 5
 
 Function: "asinh_towardzero":
 double: 1
 float: 1
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "asinh_upward":
 double: 1
@@ -75,7 +75,7 @@  float: 1
 idouble: 1
 ifloat: 1
 ildouble: 5
-ldouble: 3
+ldouble: 4
 
 Function: "atan2":
 ildouble: 1
@@ -130,8 +130,8 @@  ildouble: 1
 ldouble: 1
 
 Function: "atanh":
-ildouble: 2
-ldouble: 1
+ildouble: 3
+ldouble: 2
 
 Function: "atanh_downward":
 double: 1
@@ -139,7 +139,7 @@  float: 1
 idouble: 1
 ifloat: 1
 ildouble: 2
-ldouble: 1
+ldouble: 4
 
 Function: "atanh_towardzero":
 double: 1
@@ -147,13 +147,13 @@  float: 1
 idouble: 1
 ifloat: 1
 ildouble: 4
-ldouble: 1
+ldouble: 3
 
 Function: "atanh_upward":
 idouble: 1
 ifloat: 1
-ildouble: 3
-ldouble: 2
+ildouble: 4
+ldouble: 4
 
 Function: Real part of "cacos":
 double: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index d0d8494..abeeaf9 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -36,32 +36,32 @@  double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "acosh_downward":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 2
-ldouble: 2
+ildouble: 4
+ldouble: 4
 
 Function: "acosh_towardzero":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 2
-ldouble: 2
+ildouble: 4
+ldouble: 4
 
 Function: "acosh_upward":
 double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 3
+ldouble: 3
 
 Function: "asin":
 float: 1
@@ -98,32 +98,32 @@  double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
+ildouble: 2
+ldouble: 2
 
 Function: "asinh_downward":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-ildouble: 3
-ldouble: 3
+double: 3
+float: 3
+idouble: 3
+ifloat: 3
+ildouble: 5
+ldouble: 5
 
 Function: "asinh_towardzero":
 double: 2
 float: 2
 idouble: 2
 ifloat: 2
-ildouble: 3
-ldouble: 3
+ildouble: 4
+ldouble: 4
 
 Function: "asinh_upward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-ildouble: 3
-ldouble: 3
+double: 3
+float: 3
+idouble: 3
+ifloat: 3
+ildouble: 4
+ldouble: 4
 
 Function: "atan2":
 float: 1
@@ -184,32 +184,32 @@  double: 1
 float: 1
 idouble: 1
 ifloat: 1
-ildouble: 1
-ldouble: 1
-
-Function: "atanh_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
 ildouble: 2
 ldouble: 2
 
+Function: "atanh_downward":
+double: 2
+float: 2
+idouble: 2
+ifloat: 2
+ildouble: 5
+ldouble: 5
+
 Function: "atanh_towardzero":
 double: 1
-float: 1
+float: 2
 idouble: 1
-ifloat: 1
-ildouble: 2
-ldouble: 2
+ifloat: 2
+ildouble: 4
+ldouble: 4
 
 Function: "atanh_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: Real part of "cacos":
 double: 1