--- /dev/null
+/* { dg-additional-options "-ffast-math" } */
+
+double _Complex __attribute__((noipa))
+foo (double _Complex acc, const double _Complex *x, const double _Complex* y, int N)
+{
+ for (int c = 0; c < N; ++c)
+ acc -= x[c] * y[c];
+ return acc;
+}
+
+int
+main()
+{
+ static const double _Complex y[] = { 1, 2, };
+ static const double _Complex x[] = { 1, 3, };
+ double _Complex ref = foo (0, x, y, 2);
+ if (__builtin_creal (ref) != -7.)
+ __builtin_abort ();
+ return 0;
+}
gcc_assert (STMT_VINFO_LIVE_P (stmt_info));
+ /* Due to how we generate code for SLP_TREE_TWO_OPERATORS we cannot
+ vectorize live operations out of it. */
+ if (slp_node && SLP_TREE_TWO_OPERATORS (slp_node))
+ return false;
+
/* If a stmt of a reduction is live, vectorize it via
vect_create_epilog_for_reduction. vectorizable_reduction assessed
validity so just trigger the transform here. */