Debian Codegraph @

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

raw
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 } */
5
6 #ifndef N
7 #define N 803
8 #endif
9 unsigned vect_a[N];
10 unsigned vect_b[N];
11
12 unsigned test4(unsigned x, unsigned n)
13 {
14 unsigned ret = 0;
15 for (int i = 0; i < N; i+= (N % 4))
16 {
17 vect_b[i] = x + i;
18 if (vect_a[i]*2 > x)
19 break;
20 vect_a[i] = x;
21
22 }
23 return ret;
24 }
25
26 /* cannot safely vectorize this due due to the group misalignment. */
27 /* { dg-final { scan-tree-dump-times "vectorized 1 loops in function" 0 "vect" } } */