https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118888
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2025-02-15 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The only difference at the gimple level is order of operations for the or. so if anything this is all by accident and it is an reassociation issue and pattern matching. With -fno-tree-ter even setSquare3 does not match bts. Looks like GCC 8 had some more usage of bts but GCC 9 didn't.