| 1 |
/* { dg-do compile } */ |
| 2 |
/* Pass cunroll isn't disabled by -fno-unroll-loops, so use explicit |
| 3 |
disabling option for it. */ |
| 4 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math" } */ |
| 5 |
|
| 6 |
/* { dg-require-effective-target lp64 } */ |
| 7 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 8 |
|
| 9 |
/* { dg-additional-options "--param=vect-partial-vector-usage=1 -fdisable-tree-cunroll" } */ |
| 10 |
|
| 11 |
/* { dg-additional-options "-mno-strict-align" { target opt_mstrict_align } } */ |
| 12 |
|
| 13 |
/* Test for that only vectorize the epilogue with vector access with length, |
| 14 |
the main body still use normal vector load/store. */ |
| 15 |
|
| 16 |
#include "p9-vec-length-7.h" |
| 17 |
|
| 18 |
/* { dg-final { scan-assembler-times {\mstxvl\M} 7 } } */ |