[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr78953.c
bloba1b66cbd94a24992b524e4c9dac6315c6aea1d47
1 /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2" } */
5 #include <altivec.h>
7 /* PR 78953: mem = vec_extract (V4SI, <n>) failed if the vector was in a
8 traditional FPR register. */
10 void
11 foo (vector int *vp, int *ip)
13 vector int v = *vp;
14 __asm__ (" # fpr %x0" : "+d" (v));
15 ip[4] = vec_extract (v, 0);
18 /* { dg-final { scan-assembler {\mxxextractuw\M|\mvextuw[lr]x\M} } } */