| 1 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2 -ftree-vectorize -fno-vect-cost-model -funroll-loops -fno-tree-loop-distribute-patterns --param vect-partial-vector-usage=2 -fdump-tree-optimized" } */ |
| 2 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 3 |
/* { dg-require-effective-target lp64 } */ |
| 4 |
|
| 5 |
/* Verify there is only one IFN call LEN_LOAD and IFN_STORE separately. */ |
| 6 |
|
| 7 |
#define N 16 |
| 8 |
int src[N]; |
| 9 |
int dest[N]; |
| 10 |
|
| 11 |
void |
| 12 |
foo () |
| 13 |
{ |
| 14 |
for (int i = 0; i < (N - 1); i++) |
| 15 |
dest[i] = src[i]; |
| 16 |
} |
| 17 |
|
| 18 |
/* { dg-final { scan-tree-dump-times {\mLEN_LOAD\M} 1 "optimized" } } */ |
| 19 |
/* { dg-final { scan-tree-dump-times {\mLEN_STORE\M} 1 "optimized" } } */ |