libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_127.c
blob67cb5d34a77192e5d7d72c35df8e83535ef184ab
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 "vectorizing stmts using SLP" "vect" } } */
7 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
9 #ifndef N
10 #define N 800
11 #endif
12 unsigned vect_a[N];
13 unsigned vect_b[N];
15 unsigned test4(unsigned x)
17 unsigned ret = 0;
18 for (int i = 0; i < N; i++)
20 vect_b[i] = x + i;
21 if (vect_a[i]*2 != x)
22 break;
23 vect_a[i] = x;
26 return ret;