https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110009
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #0) > unsigned > f1 (int v) > { > [...] > int b_5; > > b_5 = v>>(sizeof(v)*8 - 1); Does it depend on -fwrapv maybe.