libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_38.c
blob8062fbbf6422af6a2e42de9574e88d411a8fb917
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 #ifndef N
7 #define N 803
8 #endif
9 unsigned vect_a[N];
10 unsigned vect_b[N];
12 unsigned test4(unsigned x)
14 unsigned ret = 0;
15 for (int i = 0; i < N; i+=2)
17 vect_b[i] = x + i;
18 if (vect_a[i]*2 > x)
19 break;
20 vect_a[i] = x;
23 return ret;
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */