1 /* { dg-do compile { target { powerpc_altivec_ok } } } */
6 foo (float f_gain1
, int n_tail
, float * __restrict__ f_in_hptr
,
7 float * __restrict__ f_out_hptr
)
10 vector
float *v_f_in_hptr
, *v_f_out_hptr
;
12 f_in_hptr
= ( float* )v_f_in_hptr
;
13 f_out_hptr
= ( float* )v_f_out_hptr
;
15 for( i
= 0 ; i
< n_tail
; i
++ ) {
16 f_out_hptr
[0] = f_in_hptr
[0] * f_gain1
;
22 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
23 /* { dg-final { cleanup-tree-dump "vect" } } */