| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power8 -mvsx -O3 -fdump-tree-slp-details" } */ |
| 3 |
/* { dg-require-effective-target vect_int } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
|
| 6 |
|
| 7 |
/* PR80695: Verify cost model for vec_construct on POWER8. */ |
| 8 |
|
| 9 |
long a[10] __attribute__((aligned(16))); |
| 10 |
|
| 11 |
void foo (long i, long j, long k, long l) |
| 12 |
{ |
| 13 |
a[6] = i; |
| 14 |
a[7] = j; |
| 15 |
a[8] = k; |
| 16 |
a[9] = l; |
| 17 |
} |
| 18 |
|
| 19 |
/* { dg-final { scan-tree-dump-times "vectorization is not profitable" 1 "slp2" } } */ |