Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_127.c

raw
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 } */
5
6 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
7 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
8
9 #ifndef N
10 #define N 800
11 #endif
12 unsigned vect_a[N];
13 unsigned vect_b[N];
14
15 unsigned test4(unsigned x)
16 {
17 unsigned ret = 0;
18 for (int i = 0; i < N; i++)
19 {
20 vect_b[i] = x + i;
21 if (vect_a[i]*2 != x)
22 break;
23 vect_a[i] = x;
24
25 }
26 return ret;
27 }