blob: a08797fcbca48c934bc74a959e9a7b1453eb25b8 [file] [log] [blame]
/* { dg-do compile { target { lp64 && powerpc_p9vector_ok } } } */
/* { dg-options "-mdejagnu-cpu=power9 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops" } */
/* { dg-additional-options "--param=vect-partial-vector-usage=1" } */
/* Test for that only vectorize the epilogue with vector access with length,
the main body still use normal vector load/store. */
#include "p9-vec-length-3.h"
/* { dg-final { scan-assembler-not {\mlxv\M} } } */
/* { dg-final { scan-assembler-not {\mstxv\M} } } */
/* { dg-final { scan-assembler-not {\mlxvx\M} } } */
/* { dg-final { scan-assembler-not {\mstxvx\M} } } */
/* 64bit types get completely unrolled, so only check the others. */
/* { dg-final { scan-assembler-times {\mlxvl\M} 14 } } */
/* { dg-final { scan-assembler-times {\mstxvl\M} 7 } } */