S/390: Fix vec_splat_* builtins.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Wed, 2 Dec 2015 08:02:05 +0000 (08:02 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 2 Dec 2015 08:02:05 +0000 (08:02 +0000)
commitdfbe4dfd9dff8caa339cf7be04c9f2acc4143f8f
treea5991879e9d12bb69d626968632fea239e448ffb
parent4f3ccd08595c533b31a03de1429df5a186cf5013
S/390: Fix vec_splat_* builtins.

gcc/testsuite/ChangeLog:

2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/zvector/vec-splat-2.c: New test.

gcc/ChangeLog:

2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390-builtin-types.def: New builtin types added.
* config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
* config/s390/s390.c (s390_expand_builtin): Always truncate
constants to the mode in the pattern.
* config/s390/vecintrin.h: Let the vec_splat_* macros point to the
respective builtin __builtin_s390_vec_splat_*.

From-SVN: r231157
gcc/ChangeLog
gcc/config/s390/s390-builtin-types.def
gcc/config/s390/s390-builtins.def
gcc/config/s390/s390.c
gcc/config/s390/vecintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/zvector/vec-splat-2.c [new file with mode: 0644]