This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52451] gcc w/i387 float generates fucom rather than fcom for floating point comparsons
- From: "bugdal at aerifal dot cx" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Apr 2012 09:37:45 +0000
- Subject: [Bug target/52451] gcc w/i387 float generates fucom rather than fcom for floating point comparsons
- Auto-submitted: auto-generated
- References: <bug-52451-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52451
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> 2012-04-23 09:37:45 UTC ---
Compiling with the -mno-ieee-fp option fixes this bug. It seems like the
behavior of this option is reversed from the documentation; -mno-ieee-fp gives
IEEE conformant comparisons (raising exception on unordered) and -mieee-fp
gives non-conformant comparisons (silent on unordered)...