Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_51.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 int x_in[32];
7 int x_out_a[32], x_out_b[32];
8 int c[16] = {3,2,1,10,1,42,3,4,50,9,32,8,11,10,1,2};
9 int a[16 +1] = {0,16,32,48,64,128,256,512,0,16,32,48,64,128,256,512,1024};
10 int b[16 +1] = {17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1};
11
12 void foo ()
13 {
14 int j, i, x;
15 int curr_a, flag, next_a, curr_b, next_b;
16 {
17 for (i = 0; i < 16; i++)
18 {
19 next_b = b[i+1];
20 curr_b = flag ? next_b : curr_b;
21 }
22 x_out_b[j] = curr_b;
23 }
24 }
25
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */