1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2" } */
6 double load_asm_v_constraint (signed char *p
)
9 __asm__ ("xxlor %x0,%x1,%x1\t# load v constraint" : "=d" (ret
) : "v" (*p
));
13 void store_asm_v_constraint (signed char *p
, double x
)
16 __asm__ ("xxlor %x0,%x1,%x1\t# store v constraint" : "=v" (i
) : "d" (x
));
20 /* { dg-final { scan-assembler "lxsibzx" } } */
21 /* { dg-final { scan-assembler "stxsibx" } } */