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 } */
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};
15 int curr_a
, flag
, next_a
, curr_b
, next_b
;
17 for (i
= 0; i
< 16; i
++)
20 curr_b
= flag
? next_b
: curr_b
;
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */