]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/30778 (invalid code generation for memset() with -mtune=k8)
authorJan Hubicka <hubicka@gcc.gnu.org>
Sun, 25 Feb 2007 17:37:37 +0000 (17:37 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 25 Feb 2007 17:37:37 +0000 (17:37 +0000)
commitbd8d4d191780e0b944d5187129b8210d71c565ec
tree702fa38991981e1fd08b6c26850d0a110e9b3917
parent710c45f6a43652d2199a01ef44ffd2652dff90ce
re PR target/30778 (invalid code generation for memset() with -mtune=k8)

PR target/30778
* i386.c (counter_mode): New function.
(expand_set_or_movmem_via_loop): Use it.
(expand_movmem_epilogue): Likewise; fix pasto.
(ix86_expand_movmem): Do emit guard even for constant counts.
(ix86_expand_setmem): Likewise.

From-SVN: r122313
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr30778.c [new file with mode: 0644]