+2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ PR target/82463
+ * config/s390/vecintrin.h (vec_madd, vec_msub): Fix macro
+ definitions.
+
2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82465
#define vec_unsigned(X) __builtin_s390_vclgdb((X), 0, 0)
#define vec_doublee(X) __builtin_s390_vfll((X))
#define vec_floate(X) __builtin_s390_vflr((X), 0, 0)
-#define vec_madd __builtin_s390_vfmadb
-#define vec_msub __builtin_s390_vfmsdb
#define vec_load_len_r(X,Y) __builtin_s390_vlrl((Y),(X))
#define vec_store_len_r(X,Y) __builtin_s390_vstrl((Y),(X))
#define vec_ld2f __builtin_s390_vec_ld2f
#define vec_st2f __builtin_s390_vec_st2f
#define vec_double __builtin_s390_vec_double
+#define vec_madd __builtin_s390_vec_madd
+#define vec_msub __builtin_s390_vec_msub
#define vec_nmadd __builtin_s390_vec_nmadd
#define vec_nmsub __builtin_s390_vec_nmsub
#define vec_nabs __builtin_s390_vec_nabs
+2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ PR target/82463
+ * gcc.target/s390/zvector/pr82463.c: New test.
+
2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/82465
--- /dev/null
+/* { dg-do compile { target { s390*-*-* } } } */
+/* { dg-options "-march=z14 -mzarch -mzvector" } */
+
+/* The builtin was not correctly defined in the vecintrin.h header
+ file. */
+
+#include <vecintrin.h>
+
+typedef __vector float v4sf;
+
+v4sf
+foo (v4sf a, v4sf b, v4sf c) {
+ return vec_madd(a, b, c);
+}