[PATCH v2] math: xfail some pown and compoundn tests for ibm128-libgcc

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Jul 23 20:01:37 GMT 2025



On 23/07/25 13:43, Sachin Monga wrote:
> On powerpc math/test-ibm128-pown shows below failures:
> 
> testing long double (without inline functions)
> infinity has wrong sign.
> Failure: Test: pown_downward (-inf, 0x7fffffffffffffffLL)
> Result:
>  is:          inf   inf
>  should be:  -inf  -inf
> Failure: Test: pown_downward (-0, 9223372036854775807LL)
> Result:
>  is:          0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  should be:  -0.00000000000000000000000000000000e+00  -0x0.000000000000000000000000000p+0
>  difference:  0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  ulp       :  0.0000
>  max.ulp   :  16.0000
> Failure: pown_downward (-0x1p+0, 9223372036854775807LL): Exception "Invalid operation" set
> Failure: pown_downward (-0x1p+0, 9223372036854775807LL): errno set to 34, expected 0 (unchanged)
> Failure: Test: pown_downward (-0x1p+0, 9223372036854775807LL)
> Result:
>  is:         qNaN
>  should be:  -1.00000000000000000000000000000000e+00  -0x1.000000000000000000000000000p+0
> infinity has wrong sign.
> Failure: Test: pown_towardzero (-0, -0x7fffffffffffffffLL)
> Result:
>  is:          inf   inf
>  should be:  -inf  -inf
> infinity has wrong sign.
> Failure: Test: pown_towardzero (-inf, 0x7fffffffffffffffLL)
> Result:
>  is:          inf   inf
>  should be:  -inf  -inf
> Failure: Test: pown_towardzero (-inf, -0x7fffffffffffffffLL)
> Result:
>  is:          0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  should be:  -0.00000000000000000000000000000000e+00  -0x0.000000000000000000000000000p+0
>  difference:  0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  ulp       :  0.0000
>  max.ulp   :  16.0000
> Failure: Test: pown_towardzero (-0, 9223372036854775807LL)
> Result:
>  is:          0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  should be:  -0.00000000000000000000000000000000e+00  -0x0.000000000000000000000000000p+0
>  difference:  0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  ulp       :  0.0000
>  max.ulp   :  16.0000
> Failure: pown_towardzero (-0x1p+0, -9223372036854775807LL): Exception "Invalid operation" set
> Failure: pown_towardzero (-0x1p+0, -9223372036854775807LL): errno set to 34, expected 0 (unchanged)
> Failure: Test: pown_towardzero (-0x1p+0, -9223372036854775807LL)
> Result:
>  is:         qNaN
>  should be:  -1.00000000000000000000000000000000e+00  -0x1.000000000000000000000000000p+0
> Failure: pown_towardzero (-0x1p+0, 9223372036854775807LL): Exception "Invalid operation" set
> Failure: pown_towardzero (-0x1p+0, 9223372036854775807LL): errno set to 34, expected 0 (unchanged)
> Failure: Test: pown_towardzero (-0x1p+0, 9223372036854775807LL)
> Result:
>  is:         qNaN
>  should be:  -1.00000000000000000000000000000000e+00  -0x1.000000000000000000000000000p+0
> infinity has wrong sign.
> Failure: Test: pown_upward (-0, -0x7fffffffffffffffLL)
> Result:
>  is:          inf   inf
>  should be:  -inf  -inf
> Failure: Test: pown_upward (-inf, -0x7fffffffffffffffLL)
> Result:
>  is:          0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  should be:  -0.00000000000000000000000000000000e+00  -0x0.000000000000000000000000000p+0
>  difference:  0.00000000000000000000000000000000e+00   0x0.000000000000000000000000000p+0
>  ulp       :  0.0000
>  max.ulp   :  16.0000
> Failure: pown_upward (-0x1p+0, -9223372036854775807LL): Exception "Invalid operation" set
> Failure: pown_upward (-0x1p+0, -9223372036854775807LL): errno set to 34, expected 0 (unchanged)
> Failure: Test: pown_upward (-0x1p+0, -9223372036854775807LL)
> Result:
>  is:         qNaN
>  should be:  -1.00000000000000000000000000000000e+00  -0x1.000000000000000000000000000p+0
> 
> Likewise, math/test-ibm128-compoundn shows below failure:
> 
> testing long double (without inline functions)
> Failure: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL): Exception "Overflow" set
> Failure: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL): errno set to 34, expected 0 (unchanged)
> Failure: Test: compoundn_upward (0xf.ffffffffffff8p+1020, 1LL)
> Result:
>  is:          inf   inf
>  should be:   1.79769313486231570814527423731707e+308   0x1.fffffffffffff00000000000008p+1023
> 
> Signed-off-by: Sachin Monga <smonga@linux.ibm.com>

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
> This patch is reg tested.
> 
> 
>> Hi,
>> there is a typo in the subject: compundn should be compoundn.
>> Paul
> 
> Thanks Paul.
> 
>  math/auto-libm-test-out-compoundn | 10 ++---
>  math/auto-libm-test-out-pown      | 72 +++++++++++++++----------------
>  math/libm-test-pown.inc           |  6 +--
>  3 files changed, 44 insertions(+), 44 deletions(-)
> 
> diff --git a/math/auto-libm-test-out-compoundn b/math/auto-libm-test-out-compoundn
> index 269fe53bd8..059fbd03cc 100644
> --- a/math/auto-libm-test-out-compoundn
> +++ b/math/auto-libm-test-out-compoundn
> @@ -2137,23 +2137,23 @@ compoundn max 1
>  = compoundn downward binary64 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn tonearest binary64 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn towardzero binary64 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
> -= compoundn upward binary64 0xf.ffffffffffff8p+1020 1LL : plus_infty : inexact-ok overflow errno-erange
> += compoundn upward binary64 0xf.ffffffffffff8p+1020 1LL : plus_infty : xfail:ibm128-libgcc inexact-ok  overflow errno-erange
>  = compoundn downward intel96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn tonearest intel96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn towardzero intel96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
> -= compoundn upward intel96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff801p+1020 : inexact-ok
> += compoundn upward intel96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff801p+1020 : xfail:ibm128-libgcc inexact-ok
>  = compoundn downward m68k96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn tonearest m68k96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn towardzero m68k96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
> -= compoundn upward m68k96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff801p+1020 : inexact-ok
> += compoundn upward m68k96 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff801p+1020 : xfail:ibm128-libgcc inexact-ok
>  = compoundn downward binary128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn tonearest binary128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn towardzero binary128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
> -= compoundn upward binary128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8000000000000008p+1020 : inexact-ok
> += compoundn upward binary128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8000000000000008p+1020 : xfail:ibm128-libgcc inexact-ok
>  = compoundn downward ibm128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn tonearest ibm128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
>  = compoundn towardzero ibm128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff8p+1020 : inexact-ok
> -= compoundn upward ibm128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff80000000000004p+1020 : inexact-ok
> += compoundn upward ibm128 0xf.ffffffffffff8p+1020 1LL : 0xf.ffffffffffff80000000000004p+1020 : xfail:ibm128-libgcc inexact-ok
>  = compoundn downward intel96 0xf.fffffffffffffffp+16380 1LL : 0xf.fffffffffffffffp+16380 : inexact-ok
>  = compoundn tonearest intel96 0xf.fffffffffffffffp+16380 1LL : 0xf.fffffffffffffffp+16380 : inexact-ok
>  = compoundn towardzero intel96 0xf.fffffffffffffffp+16380 1LL : 0xf.fffffffffffffffp+16380 : inexact-ok
> diff --git a/math/auto-libm-test-out-pown b/math/auto-libm-test-out-pown
> index 502706296a..e58bc8e97b 100644
> --- a/math/auto-libm-test-out-pown
> +++ b/math/auto-libm-test-out-pown
> @@ -824,29 +824,29 @@ pown -0 0x3ffffffffffffe
>  = pown towardzero ibm128 -0x0p+0 18014398509481982LL : 0x0p+0 : inexact-ok
>  = pown upward ibm128 -0x0p+0 18014398509481982LL : 0x0p+0 : inexact-ok
>  pown -0 0x7fffffffffffffff
> -= pown downward binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary32 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown downward binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary64 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown downward intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward intel96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown downward m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward m68k96 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown downward binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown downward ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown downward ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> -= pown towardzero ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
> += pown towardzero ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward ibm128 -0x0p+0 9223372036854775807LL : -0x0p+0 : inexact-ok
>  pown 0.0 4
>  = pown downward binary32 0x0p+0 4LL : 0x0p+0 : inexact-ok
> @@ -1101,28 +1101,28 @@ pown -1.0 -0x3ffffffffffffe
>  pown -1.0 -0x7fffffffffffffff
>  = pown downward binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward binary32 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown downward binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward binary64 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown downward intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward intel96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown downward m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward m68k96 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown downward binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward binary128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown downward ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
>  = pown tonearest ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown upward ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
> += pown upward ibm128 -0x1p+0 -9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  pown -1.0 0xffffff
>  = pown downward binary32 -0x1p+0 16777215LL : -0x1p+0 : inexact-ok
>  = pown tonearest binary32 -0x1p+0 16777215LL : -0x1p+0 : inexact-ok
> @@ -1224,29 +1224,29 @@ pown -1.0 0x3ffffffffffffe
>  = pown towardzero ibm128 -0x1p+0 18014398509481982LL : 0x1p+0 : inexact-ok
>  = pown upward ibm128 -0x1p+0 18014398509481982LL : 0x1p+0 : inexact-ok
>  pown -1.0 0x7fffffffffffffff
> -= pown downward binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary32 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown downward binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary64 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown downward intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward intel96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown downward m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward m68k96 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown downward binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward binary128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown downward ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown downward ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown tonearest ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> -= pown towardzero ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
> += pown towardzero ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : xfail:ibm128-libgcc inexact-ok
>  = pown upward ibm128 -0x1p+0 9223372036854775807LL : -0x1p+0 : inexact-ok
>  pown -2.0 126
>  = pown downward binary32 -0x2p+0 126LL : 0x4p+124 : inexact-ok
> diff --git a/math/libm-test-pown.inc b/math/libm-test-pown.inc
> index 8e04f30bdb..0bcebc36ea 100644
> --- a/math/libm-test-pown.inc
> +++ b/math/libm-test-pown.inc
> @@ -79,7 +79,7 @@ static const struct test_fL_f_data pown_test_data[] =
>      TEST_fL_f (pown, minus_zero, -0x1fffffffffffffLL, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
>      TEST_fL_f (pown, minus_zero, -0x3ffffffffffffeLL, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
>      TEST_fL_f (pown, minus_zero, -0x7ffffffffffffffeLL, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
> -    TEST_fL_f (pown, minus_zero, -0x7fffffffffffffffLL, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
> +    TEST_fL_f (pown, minus_zero, -0x7fffffffffffffffLL, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE|XFAIL_ROUNDING_IBM128_LIBGCC),
>  
>      TEST_fL_f (pown, 0, -2, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
>      TEST_fL_f (pown, 0, -0x1000000, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
> @@ -107,7 +107,7 @@ static const struct test_fL_f_data pown_test_data[] =
>      TEST_fL_f (pown, minus_infty, 0x1fffffffffffffLL, minus_infty, ERRNO_UNCHANGED),
>      TEST_fL_f (pown, minus_infty, 0x3ffffffffffffeL, plus_infty, ERRNO_UNCHANGED),
>      TEST_fL_f (pown, minus_infty, 0x7ffffffffffffffeLL, plus_infty, ERRNO_UNCHANGED),
> -    TEST_fL_f (pown, minus_infty, 0x7fffffffffffffffLL, minus_infty, ERRNO_UNCHANGED),
> +    TEST_fL_f (pown, minus_infty, 0x7fffffffffffffffLL, minus_infty, ERRNO_UNCHANGED|XFAIL_ROUNDING_IBM128_LIBGCC),
>  
>      /* pown (-inf, y) == +inf for y > 0 and not an odd integer.  */
>      TEST_fL_f (pown, minus_infty, 28, plus_infty, ERRNO_UNCHANGED),
> @@ -122,7 +122,7 @@ static const struct test_fL_f_data pown_test_data[] =
>      TEST_fL_f (pown, minus_infty, -0x1fffffffffffffLL, minus_zero, ERRNO_UNCHANGED),
>      TEST_fL_f (pown, minus_infty, -0x3ffffffffffffeLL, plus_zero, ERRNO_UNCHANGED),
>      TEST_fL_f (pown, minus_infty, -0x7ffffffffffffffeLL, plus_zero, ERRNO_UNCHANGED),
> -    TEST_fL_f (pown, minus_infty, -0x7fffffffffffffffLL, minus_zero, ERRNO_UNCHANGED),
> +    TEST_fL_f (pown, minus_infty, -0x7fffffffffffffffLL, minus_zero, ERRNO_UNCHANGED|XFAIL_ROUNDING_IBM128_LIBGCC),
>  
>      /* pown (-inf, y) == +0 for y < 0 and not an odd integer.  */
>      TEST_fL_f (pown, minus_infty, -2, 0.0, ERRNO_UNCHANGED),
> --
> 2.47.1
> 



More information about the Libc-alpha mailing list