https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88542 --- Comment #2 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> --- No, code with -ffast-math is the same. BTW, fabs(NaN) is NaN, so result is the same as before (false).