libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_128.c
blob6d7fb920ec2de529a4aa1de2c4a04286989204fd
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+=2)
20 vect_b[i] = x + i;
21 vect_b[i+1] = x + i+1;
22 if (vect_a[i]*2 != x)
23 break;
24 if (vect_a[i+1]*2 != x)
25 break;
26 vect_a[i] = x;
27 vect_a[i+1] = x;
30 return ret;