[Bug math/23253] tgamma test suite failures on i686 with -march=x86-64 -mtune=generic -mfpmath=sse

joseph at codesourcery dot com sourceware-bugzilla@sourceware.org
Fri Jun 1 20:09:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23253

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Fri, 1 Jun 2018, fweimer at redhat dot com wrote:

> Failure: tgamma_upward (-0xb.4ffffp+4): errno set to 0, expected 34 (ERANGE)

I advise checking what __ieee754_gamma_r returns (presumably not the 
expected zero), whether the code in there under SET_RESTORE_ROUND 
(FE_TONEAREST) is all properly executing in to-nearest mode (which should 
result in such a zero) and then whether the subsequent code adjusting the 
zero or infinite result for the current rounding mode is executing in 
FE_UPWARD mode as expected.

I have an old patch that adds extra barriers to tgamma (which I didn't 
proceed with at the time I wrote it because it didn't actually help with 
the problem I was dealing with at the time).  I'll attach it to this issue 
in case it helps.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list