From e9b1015112405ec5fda3d2939b5d1ee0406e755d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 25 Mar 2015 21:57:04 +0000 Subject: [PATCH] Add another test of asin. This patch adds a randomly-generated test of asin that is observed to increase ulps on x86_64. Tested for x86_64 and x86 and ulps updated accordingly. * math/auto-libm-test-in: Add another test of asin. * math/auto-libm-test-out: Regenerated. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. --- ChangeLog | 5 +++++ math/auto-libm-test-in | 1 + math/auto-libm-test-out | 25 +++++++++++++++++++++++++ sysdeps/i386/fpu/libm-test-ulps | 4 ++-- sysdeps/x86_64/fpu/libm-test-ulps | 4 ++-- 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a9e249389..99adeccbbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-03-25 Joseph Myers + * math/auto-libm-test-in: Add another test of asin. + * math/auto-libm-test-out: Regenerated. + * sysdeps/i386/fpu/libm-test-ulps: Update. + * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. + * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD): Remove macro. (LLL_EBX_REG): Likewise. diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index e7ba8624cb..5dd32371a5 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -132,6 +132,7 @@ asin -0x2.18915cp-4 asin -0x3.746774p-4 asin -0x3.1c54d10e5c844p-4 asin 0xf.c9675fa6fe69f12p-4 +asin -0xa.fc5afp-4 asin min asin -min asin min_subnorm diff --git a/math/auto-libm-test-out b/math/auto-libm-test-out index 5142886b1a..89e9effb8b 100644 --- a/math/auto-libm-test-out +++ b/math/auto-libm-test-out @@ -4252,6 +4252,31 @@ asin 0xf.c9675fa6fe69f12p-4 = asin tonearest ldbl-128ibm 0xf.c9675fa6fe69f12p-4L : 0x1.68477b62a436c95fdf96ad32dap+0L : inexact-ok = asin towardzero ldbl-128ibm 0xf.c9675fa6fe69f12p-4L : 0x1.68477b62a436c95fdf96ad32d98p+0L : inexact-ok = asin upward ldbl-128ibm 0xf.c9675fa6fe69f12p-4L : 0x1.68477b62a436c95fdf96ad32dap+0L : inexact-ok +asin -0xa.fc5afp-4 += asin downward flt-32 -0xa.fc5afp-4f : -0xc.1beb4p-4f : inexact-ok += asin tonearest flt-32 -0xa.fc5afp-4f : -0xc.1beb3p-4f : inexact-ok += asin towardzero flt-32 -0xa.fc5afp-4f : -0xc.1beb3p-4f : inexact-ok += asin upward flt-32 -0xa.fc5afp-4f : -0xc.1beb3p-4f : inexact-ok += asin downward dbl-64 -0xa.fc5afp-4 : -0xc.1beb36c9491dp-4 : inexact-ok += asin tonearest dbl-64 -0xa.fc5afp-4 : -0xc.1beb36c9491dp-4 : inexact-ok += asin towardzero dbl-64 -0xa.fc5afp-4 : -0xc.1beb36c9491c8p-4 : inexact-ok += asin upward dbl-64 -0xa.fc5afp-4 : -0xc.1beb36c9491c8p-4 : inexact-ok += asin downward ldbl-96-intel -0xa.fc5afp-4L : -0xc.1beb36c9491cd55p-4L : inexact-ok += asin tonearest ldbl-96-intel -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin towardzero ldbl-96-intel -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin upward ldbl-96-intel -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin downward ldbl-96-m68k -0xa.fc5afp-4L : -0xc.1beb36c9491cd55p-4L : inexact-ok += asin tonearest ldbl-96-m68k -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin towardzero ldbl-96-m68k -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin upward ldbl-96-m68k -0xa.fc5afp-4L : -0xc.1beb36c9491cd54p-4L : inexact-ok += asin downward ldbl-128 -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87256c8p-4L : inexact-ok += asin tonearest ldbl-128 -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87256c8p-4L : inexact-ok += asin towardzero ldbl-128 -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87256cp-4L : inexact-ok += asin upward ldbl-128 -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87256cp-4L : inexact-ok += asin downward ldbl-128ibm -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87258p-4L : inexact-ok += asin tonearest ldbl-128ibm -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87258p-4L : inexact-ok += asin towardzero ldbl-128ibm -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87254p-4L : inexact-ok += asin upward ldbl-128ibm -0xa.fc5afp-4L : -0xc.1beb36c9491cd54007aee87254p-4L : inexact-ok asin min = asin downward flt-32 0x4p-128f : 0x4p-128f : inexact-ok underflow-ok errno-erange-ok = asin tonearest flt-32 0x4p-128f : 0x4p-128f : inexact-ok underflow-ok errno-erange-ok diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index 13ffff777c..4d0246a1d0 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -38,8 +38,8 @@ ildouble: 1 ldouble: 1 Function: "asin_downward": -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "asin_towardzero": ildouble: 1 diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index dff3c2e756..d0d8494273 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -74,8 +74,8 @@ double: 1 float: 1 idouble: 1 ifloat: 1 -ildouble: 1 -ldouble: 1 +ildouble: 2 +ldouble: 2 Function: "asin_towardzero": double: 1 -- 2.11.4.GIT