https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88542
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Component|c |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think it depends on if max is a nan or not. Does -ffast-math make it work?