]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-11.c
PR tree-optimization/81303
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-interchange-11.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -floop-interchange -fdump-tree-linterchange-details" } */
3
4 #define M 256
5 int a[M][M], b[M][M];
6
7 void
8 simple_reduc_1 (int n, int *p)
9 {
10 for (int j = 0; j < n; j++)
11 {
12 int sum = p[j];
13 for (int i = 0; i < n; i++)
14 {
15 sum = sum + b[i][j];
16 b[i][j] += a[i][j];
17 }
18
19 p[j] = sum;
20 }
21 }
22 /* { dg-final { scan-tree-dump-not "Loop_pair<outer:., inner:.> is interchanged" "linterchange" } } */