aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr80695-p9.c
blob: 231cfba67f954887074d6751084997b325ad5734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-mdejagnu-cpu=power9 -mvsx -O3 -fdump-tree-slp-details" } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target powerpc_vsx } */

/* PR80695: Verify cost model for vec_construct on POWER9.  */

long a[10] __attribute__((aligned(16)));

void foo (long i, long j, long k, long l)
{
  a[6] = i;
  a[7] = j;
  a[8] = k;
  a[9] = l;
}

/* { dg-final { scan-tree-dump-times "vectorization is not profitable" 1 "slp2" } } */