[Bug target/52451] gcc w/i387 float generates fucom rather than fcom for floating point comparsons

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 23 19:09:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52451

--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to seurer from comment #7)
> Shouldn't the new test case have been marked XFAIL for powerpc64 and s390? 
> It fails on powerpc64 for sure.

This is up to target maintainer. XFAIL will get the problem off the radar for
the next 10 years or so ...

OTOH, the fix should be the same as for x86 - relatively straightforward
introduction of CCFPU mode with a helper function that selects between CCFP and
CCFPU mode depending on comparison code.


More information about the Gcc-bugs mailing list