Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr80695-p9.c

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