re PR target/66648 (incorrect memcpy expansion with unrolled_loop strategy at -O2)
authorUros Bizjak <ubizjak@gmail.com>
Sat, 25 Jul 2015 09:19:24 +0000 (11:19 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 25 Jul 2015 09:19:24 +0000 (11:19 +0200)
commit4c141304a869524c909a6a9346b004cda47659fc
tree6f03efcb67d70123b98f1040ce38858349386bec
parentf50d98b54382e7a79e25ec15828f41fa35ad77d0
re PR target/66648 (incorrect memcpy expansion with unrolled_loop strategy at -O2)

PR target/66648
* config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
execution guard when min_size is less than size_needed.

testsuite/ChangeLog:

PR target/66648
* gcc.target/i386/pr66648.c: New test.

From-SVN: r226212
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/pr66648.c [new file with mode: 0644]