Commit 3141e768 by Andreas Krebbel Committed by Andreas Krebbel

S/390: PR82465: Fix vec_sqrt builtin flags

The vector double variant is available with z13.  A wrong flag in the
s390-builtins.def file triggered an error when compiling for z13.

gcc/testsuite/ChangeLog:

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

	PR target/82465
	* gcc.target/s390/zvector/pr82465.c: New test.

gcc/ChangeLog:

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

	PR target/82465
	* config/s390/s390-builtins.def (vec_sqrt): Fix builtin flags.

From-SVN: r253542
parent 85f59ae7
2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82465
* config/s390/s390-builtins.def (vec_sqrt): Fix builtin flags.
2017-10-09 Jakub Jelinek <jakub@redhat.com>
PR target/82464
......@@ -2843,9 +2843,9 @@ OB_DEF (s390_vec_nabs, s390_vec_nabs_flt, s390_vec_nabs_dbl,
OB_DEF_VAR (s390_vec_nabs_flt, s390_vflnsb, 0, 0, BT_OV_V4SF_V4SF)
OB_DEF_VAR (s390_vec_nabs_dbl, s390_vflndb, B_VX, 0, BT_OV_V2DF_V2DF)
OB_DEF (s390_vec_sqrt, s390_vec_sqrt_flt, s390_vec_sqrt_dbl, B_VXE, BT_FN_OV4SI_OV4SI)
OB_DEF_VAR (s390_vec_sqrt_flt, s390_vfsqsb, 0, 0, BT_OV_V4SF_V4SF)
OB_DEF_VAR (s390_vec_sqrt_dbl, s390_vfsqdb, B_VX, 0, BT_OV_V2DF_V2DF)
OB_DEF (s390_vec_sqrt, s390_vec_sqrt_flt, s390_vec_sqrt_dbl, B_VX, BT_FN_OV4SI_OV4SI)
OB_DEF_VAR (s390_vec_sqrt_flt, s390_vfsqsb, B_VXE, 0, BT_OV_V4SF_V4SF)
OB_DEF_VAR (s390_vec_sqrt_dbl, s390_vfsqdb, 0, 0, BT_OV_V2DF_V2DF)
/* Test data class with boolean result *AND* cc mode. */
......
2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82465
* gcc.target/s390/zvector/pr82465.c: New test.
2017-10-09 Wilco Dijkstra <wdijkstr@arm.com>
* gcc.dg/tree-ssa/ssa-dse-26.c (dg-options): Add -fno-short-enums.
......
/* { dg-do compile { target { s390*-*-* } } } */
/* { dg-options "-march=z13 -mzarch -mzvector" } */
/* The vector double variant is available with z13. A wrong flag in
the s390-builtins.def file triggered an error when compiling for
z13. */
typedef __vector double v2df;
#include <vecintrin.h>
v2df
foo (v2df a)
{
return vec_sqrt(a);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment