S/390: z13 inline stpcpy implementation.
commit664ff6a0cd8644a434af6fedc4dacf33e6961ba7
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Feb 2016 10:31:05 +0000 (19 10:31 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Feb 2016 10:31:05 +0000 (19 10:31 +0000)
tree3baa676a3be7520cbbe32785f6125a0482751e00
parentbef91dd05a647f9a32f6764ea168cde88f3ed330
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233550 138bc75d-0d04-0410-961f-82ee72b054a4
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]