1 /* { dg-require-effective-target vect_condition } */
5 extern void abort (void) __attribute__ ((noreturn
));
9 /* Condition reduction where loop type is different than the data type. */
12 condition_reduction (int *a
, int min_v
)
16 for (char i
= 0; i
< N
; i
++)
28 67, 32, 45, 43, 21, -11, 12, 3, 4, 5,
29 6, 76, -32, 56, -32, -1, 4, 5, 6, 99,
30 43, 22, -3, 22, 16, 34, 55, 31, 87, 324
35 int ret
= condition_reduction (a
, 16);
43 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 2 "vect" } } */
44 /* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 4 "vect" { target vect_fold_extract_last } } } */
45 /* { dg-final { scan-tree-dump-not "condition expression based on integer induction." "vect" } } */