]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/unroll-5.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / unroll-5.c
CommitLineData
69e6205f 1/* { dg-do compile } */
f8934be7 2/* { dg-options "-O2 -fdump-tree-cunrolli-details -fno-peel-loops -fno-tree-vrp -fdisable-tree-cunroll -fenable-tree-cunrolli=foo2 -fdisable-tree-cunrolli=foo" } */
bb5b1f5e
XDL
3
4unsigned a[100], b[100];
5inline void bar()
6{
7 a[10] = b[10];
8}
9
10int foo(void)
11{
12 int i;
13 bar();
14 for (i = 0; i < 2; i++)
15 {
16 a[i]= b[i] + 1;
17 }
18 return 1;
19}
20
21int foo2(void)
22{
23 int i;
24 for (i = 0; i < 2; i++)
25 {
26 a[i]= b[i] + 1;
27 }
28 return 1;
29}
30
f8934be7 31/* { dg-final { scan-tree-dump-times "loop with 3 iterations completely unrolled" 1 "cunrolli" } } */