1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
5 /* { dg-options "-mcpu=power9 -O2" } */
7 double load_asm_v_constraint (short *p
)
10 __asm__ ("xxlor %x0,%x1,%x1\t# load v constraint" : "=d" (ret
) : "v" (*p
));
14 void store_asm_v_constraint (short *p
, double x
)
17 __asm__ ("xxlor %x0,%x1,%x1\t# store v constraint" : "=v" (i
) : "d" (x
));
21 /* { dg-final { scan-assembler "lxsihzx" } } */
22 /* { dg-final { scan-assembler "stxsihx" } } */