S/390: Unroll mvc loop for memcpy with small constant lengths.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 5 Jan 2017 10:03:01 +0000 (10:03 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 5 Jan 2017 10:03:01 +0000 (10:03 +0000)
commitf5a537e3905a9a098f8f4acaa8cd8e4fc1be07ff
treee6245aa60b9f5216e1a26cbf9d907172f30404f1
parent8597cd335e507057e7df5dcc0c157cbd9a5bcbdd
S/390: Unroll mvc loop for memcpy with small constant lengths.

See the memset unrolling patch.  The very same applies to memcpys with
constant lengths.

2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.c (s390_expand_movmem): Unroll MVC loop for
small constant length operands.

gcc/testsuite/ChangeLog:

2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/memcpy-1.c: New test.

From-SVN: r244098
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/memcpy-1.c [new file with mode: 0644]