Add more tests of asin [committed]
Joseph Myers
joseph@codesourcery.com
Wed Mar 25 17:54:00 GMT 2015
This patch adds some randomly-generated tests of asin 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 asin.
* 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 070298d..e7ba862 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -128,6 +128,10 @@ asin 0x0.ffffffffffffp0
asin -0x0.ffffffffffffp0
asin 0x0.ffffffffffffffffp0
asin -0x0.ffffffffffffffffp0
+asin -0x2.18915cp-4
+asin -0x3.746774p-4
+asin -0x3.1c54d10e5c844p-4
+asin 0xf.c9675fa6fe69f12p-4
asin min
asin -min
asin min_subnorm
diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps
index 3eb9d82..13ffff7 100644
--- a/sysdeps/i386/fpu/libm-test-ulps
+++ b/sysdeps/i386/fpu/libm-test-ulps
@@ -33,10 +33,18 @@ Function: "acosh_upward":
ildouble: 1
ldouble: 1
+Function: "asin":
+ildouble: 1
+ldouble: 1
+
Function: "asin_downward":
ildouble: 1
ldouble: 1
+Function: "asin_towardzero":
+ildouble: 1
+ldouble: 1
+
Function: "asin_upward":
double: 1
float: 1
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps
index f221ebc..dff3c2e 100644
--- a/sysdeps/x86_64/fpu/libm-test-ulps
+++ b/sysdeps/x86_64/fpu/libm-test-ulps
@@ -63,6 +63,12 @@ ifloat: 1
ildouble: 1
ldouble: 1
+Function: "asin":
+float: 1
+ifloat: 1
+ildouble: 1
+ldouble: 1
+
Function: "asin_downward":
double: 1
float: 1
@@ -72,8 +78,12 @@ ildouble: 1
ldouble: 1
Function: "asin_towardzero":
+double: 1
float: 1
+idouble: 1
ifloat: 1
+ildouble: 1
+ldouble: 1
Function: "asin_upward":
double: 1
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list