https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23096
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Writing a self-test for this shows we do not fold (51 - 7) %[fl] 3. But I can't spot substantial differences in the PLUS/MINUS_EXPR handling. In particular we still do MINUS->PLUS by negating op1. So I'm not sure the original issue was really folding with those constants?