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 } */
6 /* { dg-additional-options "-Ofast" } */
8 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
14 unsigned test4(unsigned x
)
17 for (int i
= 0; i
< (N
/2); i
+=2)
20 vect_b
[i
+1] = x
+ i
+1;
21 if (vect_a
[i
] > x
|| vect_a
[i
+1] > x
)
23 vect_a
[i
] += x
* vect_b
[i
];
24 vect_a
[i
+1] += x
* vect_b
[i
+1];