c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-himode.c
blob3e36daa337066802ced3796a6c807f16289e3d5f
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2" } */
4 /* { dg-require-effective-target powerpc_vsx } */
6 double load_asm_d_constraint (short *p)
8 double ret;
9 __asm__ ("xxlor %x0,%x1,%x1\t# load d constraint" : "=d" (ret) : "d" (*p));
10 return ret;
13 void store_asm_d_constraint (short *p, double x)
15 short i;
16 __asm__ ("xxlor %x0,%x1,%x1\t# store d constraint" : "=d" (i) : "d" (x));
17 *p = i;
20 /* { dg-final { scan-assembler "lxsihzx" } } */
21 /* { dg-final { scan-assembler "stxsihx" } } */