https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111
--- Comment #14 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Created attachment 33372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33372&action=edit A possible patch It seems that the ICE in #c7 came from the negative shift count. I'm not sure that the patch is compatible with the behavior of older sh64 compilers, though it might be not a bit deal because the negative shift count causes the undefined behavior anyway.