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