https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426
--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Author: kkojima Date: Tue Nov 29 23:20:28 2016 New Revision: 242981 URL: https://gcc.gnu.org/viewcvs?rev=242981&root=gcc&view=rev Log: Backported from mainline 2016-11-19 Kaz Kojima <kkoj...@gcc.gnu.org> PR target/78426 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg instead of force_reg. (sh_expand_setmem): Likewise. Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/sh/sh-mem.cc