[PATCH] Update sparc ULPs.
Joseph S. Myers
joseph@codesourcery.com
Fri Nov 16 16:55:00 GMT 2012
On Fri, 16 Nov 2012, Andreas Schwab wrote:
> David Miller <davem@davemloft.net> writes:
>
> > What I really don't understand is why ldbl-128ibm's variant of this
> > code doesn't trigger this same problem on powerpc testsuite runs.
> > Either it is happening (and therefore ldbl-128ibm/s_log1pl.c needs a
> > similar change to this) or powerpc isn't generating the exceptions.
>
> IBM long double cannot represent 0x1p-8189L, so this test is skipped.
> ppc is also seeing spurious underflows:
>
> Failure: Real part of: clog10 (0x1.00000000000000123456789abcp0 + 0x1.23456789p-1000 i) == 4.285899851347756186652871946325962330640e-19 + 4.611541215247321502041995872887317363241e-302 i: Exception "Underflow" set
> Failure: Real part of: clog10 (0x0.fffffffffffff8p0 + 0x0.fffffffffffff8p-1000 i) == -4.821637332766435821255375046554377090472e-17 + 4.053112396770095089737411317782466262176e-302 i: Exception "Underflow" set
>
> But here it is generated in atan2.
Actually, those aren't spurious, since the imaginary parts of the results
are (inexact and) below 2.00416836000897277799610805135016e-292L which is
LDBL_MIN for ldbl-128ibm. Those two tests, and the corresponding two for
clog, should be using UNDERFLOW_EXCEPTION_LDOUBLE_IBM to indicate that
such exceptions are expected in this case.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list