testsuite: Revert to the original version of pr100056.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_83.c
blob8b0e3fd6c5f5430b9139e34d1913acc329e5bc4a
1 /* { dg-add-options vect_early_break } */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
6 /* { dg-additional-options "-Ofast" } */
8 /* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */
10 #include <complex.h>
12 #define N 1024
13 complex double vect_a[N];
14 complex double vect_b[N];
16 complex double test4(complex double x)
18 complex double ret = 0;
19 for (int i = 0; i < N; i++)
21 volatile complex double z = vect_b[i];
22 vect_b[i] = x + i + z;
23 if (vect_a[i] == x)
24 return i;
25 vect_a[i] += x * vect_b[i];
28 return ret;