https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110711
--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #1) > You need to use -ffast-math, w/o it, operands order matters for floating > point max/min, they're not commutative. Sorry, too fast to reply, ignore this comment.