http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57328
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Richard Biener from comment #3) > Yes, you generally need -ffast-math here (or -ffinite-math-only at least). SSE2 has an unord comparison instruction (aka isnan) though, so vectorizing the full version of min/max should still work, and be even more worth it than for the finite-only min/max... Maybe a target issue?