1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-maltivec -mcpu=G5 -O2" } */
6 void foo( float scalar
)
11 vector
unsigned int selectMask
;
12 vColor
= vec_perm( vec_ld( 0, &scalar
), vec_ld( 3, &scalar
), vec_lvsl( 0, &scalar
) );
15 vector
float store
, load0
;
17 for( ; x
< width
; x
++)
19 load0
= vec_sel( vColor
, load0
, selectMask
);
20 vec_st( store
, 0, destRow
);