[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vector_float.c
blob50c3cae82c87293ef03b66a011e601ebd5c8944c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-options "-O2 -mdejagnu-cpu=power9 -mvsx" } */
6 vector float
7 test (float *a, float *b, float *c, float *d)
9 return (vector float){*a, *b, *c, *d};
12 /* { dg-final { scan-assembler-not {\mlxssp} } } */
13 /* { dg-final { scan-assembler-not {\mlfs} } } */
14 /* { dg-final { scan-assembler-times {\mlwz\M} 4 } } */
15 /* { dg-final { scan-assembler-times {\mrldimi\M} 2 } } */
16 /* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 } } */