| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ |
| 3 |
|
| 4 |
/* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ |
| 5 |
|
| 6 |
/* { dg-additional-options "-mno-strict-align" { target opt_mstrict_align } } */ |
| 7 |
|
| 8 |
/* { dg-require-effective-target lp64 } */ |
| 9 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 10 |
|
| 11 |
/* Test for fully with length, the loop body uses vector access with length, |
| 12 |
there should not be any epilogues. */ |
| 13 |
|
| 14 |
#include "p9-vec-length-5.h" |
| 15 |
|
| 16 |
/* It can use normal vector load for constant vector load. */ |
| 17 |
/* { dg-final { scan-assembler-not {\mstxv\M} } } */ |
| 18 |
/* { dg-final { scan-assembler-not {\mlxvx\M} } } */ |
| 19 |
/* { dg-final { scan-assembler-not {\mstxvx\M} } } */ |
| 20 |
/* { dg-final { scan-assembler-times {\mlxvl\M} 21 } } */ |
| 21 |
/* { dg-final { scan-assembler-times {\mstxvl\M} 21 } } */ |