https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Shouldn't we optimize this in match.pd when global range says it is ok or during vrp/evrp using local ranges? I mean turn the int shift into {,un}signed {char,short} one depending on the shift amount range and casts before/after the shift.