[Bug c/59424] Optimization issue on min/max

jmvalin at jmvalin dot ca gcc-bugzilla@gcc.gnu.org
Mon Dec 9 17:05:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59424

--- Comment #3 from Jean-Marc Valin <jmvalin at jmvalin dot ca> ---
What's strange is that adding -ffast-math makes gcc use maxss on func3() too,
even though it was already allowed to without -ffast-math. I had the same
problem with absolute value, although in that case fabs() solved the problem.
In the case of max(), using fmax() doesn't help because it's too strict about
NaN behaviour to match maxss.



More information about the Gcc-bugs mailing list