Debian Codegraph @

gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffast-math" } */
3 /* { dg-require-effective-target vect_double } */
4
5 double self[1024];
6 double a[1024][1024];
7 double b[1024];
8
9 void __attribute__((noinline,noclone))
10 foo (void)
11 {
12 int i, j;
13 for (i = 0; i < 1024; i+=6)
14 for (j = 0; j < 1024; j+=6)
15 {
16 self[i] = self[i] + a[i][j]*b[j];
17 self[i+1] = self[i+1] + a[i][j+1]*b[j+1];
18 }
19 }
20
21 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
22 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! vect_strided6 } } } } */