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_d_constraint (signed char *p
)
9 __asm__ ("xxlor %x0,%x1,%x1\t# load d constraint" : "=d" (ret
) : "d" (*p
));
13 void store_asm_d_constraint (signed char *p
, double x
)
16 __asm__ ("xxlor %x0,%x1,%x1\t# store d constraint" : "=d" (i
) : "d" (x
));
20 /* { dg-final { scan-assembler "lxsibzx" } } */
21 /* { dg-final { scan-assembler "stxsibx" } } */