1 /* Test for pr30485. */
2 /* { dg-require-effective-target vect_float } */
9 float b
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 __attribute__ ((noinline
)) int
17 /* Condition in loop. */
18 /* This loop is vectorized on platforms that support vect_condition. */
19 for (i
= 0; i
< N
; i
++)
21 a
[i
] = (b
[i
] > 0 ? b
[i
] : 0);
24 for (i
= 0; i
< N
; i
++)
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_condition } } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */