powerpc: Update ULPs and xfail more ibm128 outputs

Message ID 20200401210709.54718-1-tuliom@linux.ibm.com
State New
Headers show
Series
  • powerpc: Update ULPs and xfail more ibm128 outputs
Related show

Commit Message

Sergei Trofimovich via Libc-alpha April 1, 2020, 9:07 p.m.
There are 3 new output values that require to be marked as xfail:ibm128-libgcc
as they're caused by libgcc issues with different rounding modes.
Otherwise, the other tests just need an increase in ULP.
---
 math/auto-libm-test-out-j0         |  2 +-
 math/auto-libm-test-out-j1         |  4 ++--
 sysdeps/powerpc/fpu/libm-test-ulps | 34 ++++++++++++++++--------------
 3 files changed, 21 insertions(+), 19 deletions(-)

-- 
2.25.1

Comments

Joseph Myers April 1, 2020, 11:09 p.m. | #1
On Wed, 1 Apr 2020, Tulio Magno Quites Machado Filho via Libc-alpha wrote:

> There are 3 new output values that require to be marked as xfail:ibm128-libgcc

> as they're caused by libgcc issues with different rounding modes.

> Otherwise, the other tests just need an increase in ULP.


The auto-libm-test-out-* files are generated files.  You can't edit them 
directly, you need to edit the source auto-libm-test-in (probably adding 
xfail-rounding:ibm128-libgcc to the relevant tests) and regenerate.

-- 
Joseph S. Myers
joseph@codesourcery.com

Patch

diff --git a/math/auto-libm-test-out-j0 b/math/auto-libm-test-out-j0
index 2b19908948..0bec7539e9 100644
--- a/math/auto-libm-test-out-j0
+++ b/math/auto-libm-test-out-j0
@@ -1357,5 +1357,5 @@  j0 0x2.602774p+0
 = j0 upward binary128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab702p-8 : inexact-ok
 = j0 downward ibm128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab7p-8 : inexact-ok
 = j0 tonearest ibm128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab7p-8 : inexact-ok
-= j0 towardzero ibm128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab7p-8 : inexact-ok
+= j0 towardzero ibm128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab7p-8 : xfail:ibm128-libgcc inexact-ok
 = j0 upward ibm128 0x2.602774p+0 : 0x3.e83779fe19911fa806cee83ab8p-8 : inexact-ok
diff --git a/math/auto-libm-test-out-j1 b/math/auto-libm-test-out-j1
index 52a4e407c8..76bb99acaf 100644
--- a/math/auto-libm-test-out-j1
+++ b/math/auto-libm-test-out-j1
@@ -989,9 +989,9 @@  j1 0x3.ae4b2p+0
 = j1 tonearest binary128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787d2p-8 : inexact-ok
 = j1 towardzero binary128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787d2p-8 : inexact-ok
 = j1 upward binary128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787d28p-8 : inexact-ok
-= j1 downward ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787cp-8 : inexact-ok
+= j1 downward ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787cp-8 : xfail:ibm128-libgcc inexact-ok
 = j1 tonearest ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787cp-8 : inexact-ok
-= j1 towardzero ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787cp-8 : inexact-ok
+= j1 towardzero ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f787cp-8 : xfail:ibm128-libgcc inexact-ok
 = j1 upward ibm128 0x3.ae4b2p+0 : 0xf.d085c66e86f30267f22d6f788p-8 : inexact-ok
 j1 min
 = j1 downward binary32 0x4p-128 : 0x1.fffff8p-128 : inexact-ok underflow errno-erange-ok
diff --git a/sysdeps/powerpc/fpu/libm-test-ulps b/sysdeps/powerpc/fpu/libm-test-ulps
index 73f18cf1df..1c989e020f 100644
--- a/sysdeps/powerpc/fpu/libm-test-ulps
+++ b/sysdeps/powerpc/fpu/libm-test-ulps
@@ -77,7 +77,7 @@  ldouble: 2
 
 Function: "asinh":
 double: 1
-float: 1
+float: 2
 float128: 3
 ldouble: 2
 
@@ -792,7 +792,7 @@  ldouble: 5
 
 Function: "cosh":
 double: 1
-float: 1
+float: 2
 float128: 1
 ldouble: 3
 
@@ -1151,11 +1151,13 @@  ldouble: 7
 
 Function: "exp":
 double: 1
+float: 1
 float128: 1
 ldouble: 1
 
 Function: "exp10":
 double: 2
+float: 1
 float128: 2
 ldouble: 1
 
@@ -1303,7 +1305,7 @@  ldouble: 3
 
 Function: "j0":
 double: 2
-float: 2
+float: 8
 float128: 2
 ldouble: 2
 
@@ -1314,26 +1316,26 @@  float128: 4
 ldouble: 11
 
 Function: "j0_towardzero":
-double: 2
-float: 1
+double: 5
+float: 6
 float128: 2
 ldouble: 8
 
 Function: "j0_upward":
-double: 3
-float: 2
+double: 4
+float: 5
 float128: 5
 ldouble: 6
 
 Function: "j1":
-double: 1
-float: 2
+double: 2
+float: 8
 float128: 4
-ldouble: 2
+ldouble: 3
 
 Function: "j1_downward":
 double: 3
-float: 2
+float: 5
 float128: 4
 ldouble: 7
 
@@ -1673,31 +1675,31 @@  ldouble: 6
 
 Function: "tgamma":
 double: 5
-float: 4
+float: 8
 float128: 4
 ldouble: 5
 
 Function: "tgamma_downward":
 double: 5
-float: 5
+float: 7
 float128: 5
 ldouble: 6
 
 Function: "tgamma_towardzero":
 double: 5
-float: 4
+float: 7
 float128: 5
 ldouble: 5
 
 Function: "tgamma_upward":
 double: 4
-float: 4
+float: 8
 float128: 4
 ldouble: 5
 
 Function: "y0":
 double: 2
-float: 1
+float: 6
 float128: 3
 ldouble: 1