https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64183
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Just thinking out loud - if the type is already int then there is no need to promote or shorten it further, thus we could just leave it alone... That is, only apply the extra conversion if it would shorten the shift operand.