PR82322: S/390: Fix vec_ceil and friends
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 6 Oct 2017 09:19:46 +0000 (09:19 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 6 Oct 2017 09:19:46 +0000 (09:19 +0000)
commitac95a65da150a120cf729d1a773af7417e263330
treeaa54268a1f20dcb7f60f10c4c860d671cdd66e85
parent6fcb90c624db95f1b483e0d403e95215d4732bd6
PR82322: S/390: Fix vec_ceil and friends

vec_ceil and friends are expanded by vecintrin.h to __builtin_s390_vfi
which is an overloaded builtin being replaced by either
__builtin_s390_vfisb or __builtin_s390_vfidb depending on its argument
types.

The problem in this PR was that the overloaded builtin definition of
__builtin_s390_vfi was missing in s390-builtins.def.

gcc/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/82322
* config/s390/s390-builtins.def (s390_vfi): Define new overloaded
builtin.
* config/s390/s390-builtin-types.def: Regenerate.

gcc/testsuite/ChangeLog:

2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/82322
* gcc.target/s390/zvector/pr82322.c: New test.

From-SVN: r253481
gcc/ChangeLog
gcc/config/s390/s390-builtin-types.def
gcc/config/s390/s390-builtins.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/zvector/pr82322.c [new file with mode: 0644]