[Bug target/82317] [8 Regression] "'__builtin_s390_vec_min' matching variant requires z14 or higher" for __vector(2) double when it should work on -march=z13 as well
krebbel at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 6 09:19:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82317
--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Fri Oct 6 09:18:37 2017
New Revision: 253480
URL: https://gcc.gnu.org/viewcvs?rev=253480&root=gcc&view=rev
Log:
PR82317: S/390: Fix vec_min/vec_max builtins for IBM z13.
With IBM z14 a hardware instruction for floating point min and max has
been added while for IBM z13 we emulated min/max for vector double with
compare and select. This testcase makes sure that we fall back to the
emulated variant when compiling for z13.
gcc/ChangeLog:
2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82317
* config/s390/s390-builtin-types.def: Regenerate.
* config/s390/s390-builtins.def (s390_vfmaxdb_4, s390_vfmindb_4):
Change flag from B_VXE to B_VX.
(s390_vec_min_dbl): Remove B_VXE flag.
gcc/testsuite/ChangeLog:
2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82317
* gcc.target/s390/zvector/pr82317.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/s390/zvector/pr82317.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/s390/s390-builtin-types.def
trunk/gcc/config/s390/s390-builtins.def
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list