+2016-11-19 Kaz Kojima <kkojima@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.
+
2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
* config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
rtx_code_label *L_loop_byte = gen_label_rtx ();
rtx_code_label *L_end_loop_byte = gen_label_rtx ();
- rtx len = force_reg (SImode, operands[3]);
+ rtx len = copy_to_mode_reg (SImode, operands[3]);
int constp = CONST_INT_P (operands[3]);
const unsigned int addr1_alignment = MEM_ALIGN (operands[1]) / BITS_PER_UNIT;
rtx_insn *jump;
rtx dest = copy_rtx (operands[0]);
rtx dest_addr = copy_addr_to_reg (XEXP (dest, 0));
- rtx val = force_reg (SImode, operands[2]);
+ rtx val = copy_to_mode_reg (SImode, operands[2]);
int align = INTVAL (operands[3]);
- rtx len = force_reg (SImode, operands[1]);
+ rtx len = copy_to_mode_reg (SImode, operands[1]);
if (! CONST_INT_P (operands[1]))
return;