[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-simode3.c
blob48201b41e89f28ca13a7e3ceb9be2c69207bb6af
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-options "-mdejagnu-cpu=power8 -O2" } */
6 double load_asm_v_constraint (int *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 (int *p, double x)
15 int i;
16 __asm__ ("xxlor %x0,%x1,%x1\t# store v constraint" : "=v" (i) : "d" (x));
17 *p = i;
20 /* { dg-final { scan-assembler "lxsiwzx" } } */
21 /* { dg-final { scan-assembler "stxsiwx" } } */