1 /* { dg-require-effective-target vect_condition } */
5 extern void abort (void) __attribute__ ((noreturn
));
9 /* Simple condition reduction where the result is a negative of the induction.
10 Will fail to vectorize to a simple case. */
13 condition_reduction (signed int *a
, signed int min_v
)
17 for (signed int i
= 0; i
< N
; i
++)
28 11, -12, 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 signed int ret
= condition_reduction (a
, 16);
44 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 2 "vect" } } */
45 /* { dg-final { scan-tree-dump-not "condition expression based on integer induction." "vect" } } */