This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70731] With -Ofast, reorder floating-point and integer operands to minimize conversions
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Apr 2016 18:48:30 +0000
- Subject: [Bug tree-optimization/70731] With -Ofast, reorder floating-point and integer operands to minimize conversions
- Auto-submitted: auto-generated
- References: <bug-70731-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70731
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
That... seems dangerous to me. With floats, unsafe operations tend to change
the low bits. With integers, an overflow gets the high bits wrong. If you call
test(INT_MAX,0,1,0) for instance, the result would be quite different between
the 2 functions...