https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110711
Hongtao.liu <crazylht at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com --- Comment #1 from Hongtao.liu <crazylht at gmail dot com> --- You need to use -ffast-math, w/o it, operands order matters for floating point max/min, they're not commutative.