https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114204
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2024-03-02 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- `A == B ? (A - B) : 0` And `A == -B ? (A + B) : 0` Can be handled easily in match.pd. So mine. I think both can be done for !have_nans & !HAVE_SIGNED_ZEROS.