[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / mma-builtin-6.c
blob715b28138e9eff4cc491f01a813e1c2614466e32
1 /* { dg-do compile } */
2 /* { dg-require-effective-target power10_ok } */
3 /* { dg-options "-Wno-psabi -mdejagnu-cpu=power10 -O2" } */
5 void
6 foo (__vector_quad *dst)
8 __vector_quad acc0, acc1;
9 __builtin_mma_xxsetaccz (&acc0);
10 __builtin_mma_xxsetaccz (&acc1);
11 dst[0] = acc0;
12 dst[1] = acc1;
15 /* { dg-final { scan-assembler-not {\mlxv\M} } } */
16 /* { dg-final { scan-assembler-not {\mlxvp\M} } } */
17 /* { dg-final { scan-assembler-not {\mxxmtacc\M} } } */
18 /* { dg-final { scan-assembler-times {\mxxsetaccz\M} 2 } } */
19 /* { dg-final { scan-assembler-times {\mxxmfacc\M} 2 } } */
20 /* { dg-final { scan-assembler-times {\mstxvp\M} 4 } } */