S/390: arch13: vector load/store byte reversed element for builtins
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 2 Apr 2019 11:03:40 +0000 (11:03 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 2 Apr 2019 11:03:40 +0000 (11:03 +0000)
commitb112d1c928df130cd5481e0f751242c7217ec83d
treeb2d1ef70af524dccd721eac0779fdeccf2e0c38f
parent3278804e59a76e7f140a522286d7ac88c2cdb916
S/390: arch13: vector load/store byte reversed element for builtins

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
* config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
New insn definitions.

gcc/testsuite/ChangeLog:

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/zvector/bswap-and-replicate-1.c: New test.
* gcc.target/s390/zvector/get-element-bswap-1.c: New test.
* gcc.target/s390/zvector/get-element-bswap-2.c: New test.
* gcc.target/s390/zvector/get-element-bswap-3.c: New test.
* gcc.target/s390/zvector/get-element-bswap-4.c: New test.
* gcc.target/s390/zvector/set-element-bswap-1.c: New test.
* gcc.target/s390/zvector/set-element-bswap-2.c: New test.
* gcc.target/s390/zvector/set-element-bswap-3.c: New test.

From-SVN: r270086
12 files changed:
gcc/ChangeLog
gcc/config/s390/vecintrin.h
gcc/config/s390/vx-builtins.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/zvector/bswap-and-replicate-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/get-element-bswap-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/get-element-bswap-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/get-element-bswap-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/get-element-bswap-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/set-element-bswap-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/set-element-bswap-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/zvector/set-element-bswap-3.c [new file with mode: 0644]