| /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ |
| /* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| /* { dg-require-effective-target powerpc_p8vector_ok } */ |
| /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ |
| |
| double load_asm_v_constraint (int *p) |
| { |
| double ret; |
| __asm__ ("xxlor %x0,%x1,%x1\t# load v constraint" : "=d" (ret) : "v" (*p)); |
| return ret; |
| } |
| |
| void store_asm_v_constraint (int *p, double x) |
| { |
| int i; |
| __asm__ ("xxlor %x0,%x1,%x1\t# store v constraint" : "=v" (i) : "d" (x)); |
| *p = i; |
| } |
| |
| /* { dg-final { scan-assembler "lxsiwzx" } } */ |
| /* { dg-final { scan-assembler "stxsiwx" } } */ |