annotate gcc/testsuite/gcc.dg/tree-ssa/ldist-25.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1 /* { dg-do compile { target size32plus } } */
111
kono
parents:
diff changeset
2 /* { dg-options "-O3 -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #define k 1335
kono
parents:
diff changeset
5 double a[k][k];
kono
parents:
diff changeset
6 double b[k][k];
kono
parents:
diff changeset
7 double c[k][k];
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int x;
kono
parents:
diff changeset
10 int y;
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 void
kono
parents:
diff changeset
13 foo (void)
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 for (int j = 0; j < x; j++)
kono
parents:
diff changeset
16 {
kono
parents:
diff changeset
17 for (int i = 0; i < y; i++)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 c[j][i] = b[j][i] - a[j][i];
kono
parents:
diff changeset
20 a[j][i] = b[j][i];
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22 }
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 /* { dg-final { scan-tree-dump "Loop . not distributed" "ldist" } } */