[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-qimode3.c
blob4dce4f01447aaf314d5835a1cf7ad32fb5e03a80
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)
8 double ret;
9 __asm__ ("xxlor %x0,%x1,%x1\t# load v constraint" : "=d" (ret) : "v" (*p));
10 return ret;
13 void store_asm_v_constraint (signed char *p, double x)
15 signed char i;
16 __asm__ ("xxlor %x0,%x1,%x1\t# store v constraint" : "=v" (i) : "d" (x));
17 *p = i;
20 /* { dg-final { scan-assembler "lxsibzx" } } */
21 /* { dg-final { scan-assembler "stxsibx" } } */