* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ldist-32.c
blob477d222fb3b75b70db0e0336677c25fbcf79c8fc
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-distribution -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
4 #define M (256)
5 #define N (512)
7 struct st
9 int a[M][N];
10 int c[M];
11 int b[M][N];
14 void
15 foo (struct st *p)
17 for (unsigned i = 0; i < M; ++i)
19 p->c[i] = 0;
20 for (unsigned j = N; j > 0; --j)
22 p->a[i][j - 1] = 0;
23 p->b[i][j - 1] = 0;
28 /* { dg-final { scan-tree-dump-times "Loop nest . distributed: split to 0 loops and 1 library" 1 "ldist" } } */
29 /* { dg-final { scan-tree-dump-times "__builtin_memset \\(.*, 0, 1049600\\);" 1 "ldist" } } */