https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121557
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2025-08-30 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My bet if you replace: if (j) b = 0; With `b = (j==0)<<1;` It will reproduce beforehand. This is most likely just slsr producing signed integer overflow code even though there is none in the original source.