https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116546
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-08-30 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Disabling the forwprop1 allows VRP to handle this. `-fdisable-tree-forwprop1` Basically forwprop is combining `(n &4) & 7` which then confuses VRP.