Don't use mode wider than Pmode for size in movmem/setmem
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 5 Nov 2013 14:17:33 +0000 (14:17 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 5 Nov 2013 14:17:33 +0000 (06:17 -0800)
commit5689294cd95ee6209a55359b710ca9bce81d98d8
treeff433ccdf462aa7465faa04380de59abd9507cd5
parentc8d97db2cc5f8c8b603196e1f3704b4a2c3caf37
Don't use mode wider than Pmode for size in movmem/setmem

gcc/

PR middle-end/58981
* doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
pattern, instead of word_mode.

* expr.c (emit_block_move_via_movmem): Don't use mode wider than
Pmode for size.
(set_storage_via_setmem): Likewise.

gcc/testsuite/

PR middle-end/58981
* gcc.dg/pr58981.c: New test.

From-SVN: r204394
gcc/ChangeLog
gcc/doc/md.texi
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr58981.c [new file with mode: 0644]