libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_4.c
blobbd7107c1736cdc21dc6b9e35e0293286c18299ec
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 #define N 1024
11 unsigned vect[N];
13 unsigned test4(unsigned x)
15 unsigned ret = 0;
16 for (int i = 0; i < N; i++)
18 if (i > 16 && vect[i] > x)
19 break;
21 vect[i] = x;
23 return ret;