Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_133_pfa5.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 /* { dg-additional-options "-Ofast" } */
7
8 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
9
10 unsigned test4(char x, char *vect, int n)
11 {
12 unsigned ret = 0;
13 for (int i = 0; i < n; i++)
14 {
15 if (vect[i] > x)
16 return 1;
17
18 vect[i] = x;
19 }
20 return ret;
21 }
22
23 /* { dg-final { scan-tree-dump "Alignment of access forced using peeling" "vect" } } */