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