re PR target/78426 (wrong code with strncmp on SH)
authorKaz Kojima <kkojima@gcc.gnu.org>
Sat, 19 Nov 2016 13:59:47 +0000 (13:59 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sat, 19 Nov 2016 13:59:47 +0000 (13:59 +0000)
commite8fe0e46170419bfe47bbaf381e38e7ddc525ef6
tree104c3168dfae8aed6ed2e6f9059e1610d3949759
parent0333b8d06de3c9ac38360e351f89c87ccac23fcc
re PR target/78426 (wrong code with strncmp on SH)

PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.

From-SVN: r242622
gcc/ChangeLog
gcc/config/sh/sh-mem.cc