+2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR tree-optimization/92710
+ * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
+ vector mask arguments.
+
2019-11-29 Jan Hubicka <hubicka@ucw.cz>
* profile-count.c (profile_count::to_cgraph_frequency,
+2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR tree-optimization/92710
+ * gcc.dg/vect/pr92710.c: New test.
+
2019-11-29 Tobias Burnus <tobias@codesourcery.com>
PR ipa/84963
--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-fopenmp-simd" } */
+
+#pragma omp declare simd
+_Bool foo (_Bool) __attribute__((const));
+
+void
+f (_Bool *restrict x, char *restrict y, char *restrict z)
+{
+ for (int i = 0; i < 128; ++i)
+ x[i] = foo (y[i] == z[i]);
+}
|| thisarginfo.dt == vect_external_def)
gcc_assert (thisarginfo.vectype == NULL_TREE);
else
- gcc_assert (thisarginfo.vectype != NULL_TREE);
+ {
+ gcc_assert (thisarginfo.vectype != NULL_TREE);
+ if (VECTOR_BOOLEAN_TYPE_P (thisarginfo.vectype))
+ {
+ if (dump_enabled_p ())
+ dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
+ "vector mask arguments are not supported\n");
+ return false;
+ }
+ }
/* For linear arguments, the analyze phase should have saved
the base and step in STMT_VINFO_SIMD_CLONE_INFO. */