[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-vec-length-epil-2.c
blob499dcef34fd948721b82ad96acd17334531dcb49
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=1" } */
6 /* { dg-additional-options "-mno-strict-align" { target opt_mstrict_align } } */
8 /* Test for that only vectorize the epilogue with vector access with length,
9 the main body still use normal vector load/store. */
11 #include "p9-vec-length-2.h"
13 /* { dg-final { scan-assembler-times {\mlxvx?\M} 20 } } */
14 /* { dg-final { scan-assembler-times {\mstxvx?\M} 10 } } */
15 /* { dg-final { scan-assembler-times {\mlxvl\M} 20 } } */
16 /* { dg-final { scan-assembler-times {\mstxvl\M} 10 } } */