https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100998
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Peter Bergner from comment #7) > (In reply to Peter Bergner from comment #6) > > And you guessed well! I built a mainline compiler for Gordon with Aaron's > > commit reverted and the issue goes away. Assigning this to Aaron to debug. > > Talking with Aaron offline, he pointed me at his > 52e130652a76ff3d14c0f572fcd79fa53637ce2c fix which is already upstream. > Checking my sources, I don't have that, so I will retry with an updated > compiler. Yes that looks like it could be in this case, since we are getting 0 - 2 rather 2 - 0 That is for: _3 = _2 & _9; _4 = _3 - _1; before that patch, it would be doing basically _1 - _3 instead of the above.