1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-O2 -maltivec -mabi=altivec -mdejagnu-cpu=cell" } */
4 /* { dg-final { scan-assembler-times "vor" 2 } } */
7 /* Make sure that lvlx and lvrx are not combined into one insn and
11 lvx_float (long off
, float *p
)
13 vector
unsigned char l
, r
;
15 l
= (vector
unsigned char) vec_lvlx (off
, p
);
16 r
= (vector
unsigned char) vec_lvrx (off
, p
);
21 lvxl_float (long off
, float *p
)
23 vector
unsigned char l
, r
;
25 l
= (vector
unsigned char) vec_lvlxl (off
, p
);
26 r
= (vector
unsigned char) vec_lvrxl (off
, p
);