https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78426
--- Comment #4 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Author: kkojima Date: Tue Nov 29 23:23:30 2016 New Revision: 242982 URL: https://gcc.gnu.org/viewcvs?rev=242982&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-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/sh/sh-mem.cc