1 /* { dg-require-effective-target vect_condition } */
5 extern void abort (void) __attribute__ ((noreturn
));
9 /* Simple condition reduction with a reversed loop.
10 Will fail to vectorize to a simple case. */
13 condition_reduction (int *a
, int min_v
)
17 for (int i
= N
-1; i
>=0; i
--)
28 17, 28, 13, 14, 15, 16, 17, 18, 19, 20,
29 1, 2, -3, 4, 5, 6, 7, -8, 9, 10,
30 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
36 int ret
= condition_reduction (a
, 16);
44 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 2 "vect" { xfail { ! vect_max_reduc } } } } */
45 /* { dg-final { scan-tree-dump-not "condition expression based on integer induction." "vect" } } */