]> git.ipfire.org Git - thirdparty/gcc.git/commit
S/390: z13 inline stpcpy implementation.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 19 Feb 2016 10:31:05 +0000 (10:31 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 19 Feb 2016 10:31:05 +0000 (10:31 +0000)
commit859a4c0e84bca813f29e7c2e729b647704e4b747
tree3baa676a3be7520cbbe32785f6125a0482751e00
parent9a36359ec618e0eaff5f622cb61bc1af1c72e5c1
S/390: z13 inline stpcpy implementation.

A handwritten loop for stpcpy using the new z13 vector instructions
appears to be much faster than the millicoded instruction.  However,
the implementation is much longer and therefore will only be enabled
when optimization for speed.

gcc/testsuite/ChangeLog:

* gcc.target/s390/md/movstr-2.c: New test.

gcc/ChangeLog:

* config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
* config/s390/s390.c (s390_expand_vec_movstr): New function.
* config/s390/s390.md ("movstr<P:mode>"): Call
s390_expand_vec_movstr.

From-SVN: r233550
gcc/ChangeLog
gcc/config/s390/s390-protos.h
gcc/config/s390/s390.c
gcc/config/s390/s390.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/md/movstr-2.c [new file with mode: 0644]