[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-vec-length-full-3.c
blobecef0fd13939f7504c49434f18650c7d4b74ea36
1 /* { dg-do compile { target { lp64 && powerpc_vsx_ok } } } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */
4 /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */
6 /* { dg-additional-options "-mno-strict-align" { target opt_mstrict_align } } */
8 /* Test for fully with length, the loop body uses vector access with length,
9 there should not be any epilogues. */
11 #include "p9-vec-length-3.h"
13 /* { dg-final { scan-assembler-not {\mlxv\M} } } */
14 /* { dg-final { scan-assembler-not {\mstxv\M} } } */
15 /* { dg-final { scan-assembler-not {\mlxvx\M} } } */
16 /* { dg-final { scan-assembler-not {\mstxvx\M} } } */
17 /* 64bit types get completely unrolled, so only check the others. */
18 /* { dg-final { scan-assembler-times {\mlxvl\M} 14 } } */
19 /* { dg-final { scan-assembler-times {\mstxvl\M} 7 } } */