https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80261
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|UNCONFIRMED |NEW Component|target |middle-end Last reconfirmed| |2021-08-15 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed: ptr.0_1 = (long int) ptr_5(D); _4 = ptr.0_1 & 4294967295; _2 = (long unsigned int) _4; _3 = _2 % 131; We could do the %131 in 32bits while we do it for 64bit. The second issue is we expand out *131 which might be ok.