libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_15.c
blob08e7faf240238376df180cae1177a25cc00e19ff
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 "LOOP VECTORIZED" "vect" } } */
10 #define N 803
11 unsigned vect_a[N];
12 unsigned vect_b[N];
14 int test4(unsigned x)
16 int ret = 0;
17 for (int i = 0; i < N; i++)
19 vect_b[i] = x + i;
20 if (vect_a[i] > x)
21 return i;
22 vect_a[i] += x * vect_b[i];
25 return ret;