https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91232
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- It's the 0 - src computation that invokes undefined behavior and things go downhill from there. Use 0 - (uint32_t)src here.