Don't use mode wider than Pmode for size in movmem/setmem
commit300c6ceec3d8a1a5f898c399e63381e3203c24bc
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 14:17:33 +0000 (5 14:17 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Nov 2013 14:17:33 +0000 (5 14:17 +0000)
treeff433ccdf462aa7465faa04380de59abd9507cd5
parentf5ea8c530cdc4e8a16a7f69f38b0eaa613a35036
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204394 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/md.texi
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr58981.c [new file with mode: 0644]