libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_114-pr113750.c
blob37af2998688f5d60e2cdb372ab43afcaa52a3146
1 /* { dg-do compile } */
2 /* { dg-add-options vect_early_break } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
6 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
8 #ifndef N
9 #define N 800
10 #endif
11 unsigned vect_a[N];
12 unsigned vect_b[N];
14 unsigned test4(unsigned x)
16 unsigned ret = 0;
17 for (int i = 0; i < N; i++)
19 vect_b[i] = x + i;
20 foo:
21 if (vect_a[i] != x)
22 break;
23 vect_a[i] = x;
25 return ret;