https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65153
--- Comment #12 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Created attachment 34840 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34840&action=edit patch for 4_9-branch I've noticed that that peephole is the last user of sh.c:replace_n_hard_rtx. I'm testing this and the similar patch for trunk on sh4-unknown-linux-gnu.