[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / p9-vec-length-epil-4.c
blob83c67ff4a0ef4da4303a6a4fb98d4b0caaede1b4
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-4.h"
13 /* { dg-final { scan-assembler-times {\mlxvx?\M} 120 } } */
14 /* { dg-final { scan-assembler-times {\mstxvx?\M} 70 } } */
15 /* { dg-final { scan-assembler-times {\mlxvl\M} 70 } } */
16 /* { dg-final { scan-assembler-times {\mstxvl\M} 70 } } */