1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-require-effective-target vect_call_btruncf } */
8 foo (float *output
, float *input
)
12 for (i
= 0; i
< N
; i
++)
13 output
[i
] = __builtin_truncf (input
[i
]);
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_btruncf } } } */
17 /* { dg-final { cleanup-tree-dump "vect" } } */