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