https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83565
--- Comment #4 from James Clarke <jrtc27 at jrtc27 dot com> --- Created attachment 42961 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42961&action=edit Zero-out high 32 bits after a rotate Please try the attached patch.