1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cunrolli-details=stderr -fno-peel-loops -fno-tree-vrp  -fdisable-tree-cunroll -fenable-tree-cunrolli" } */
3 
4 /* Blank lines can occur in the output of
5    -fdump-tree-cunrolli-details=stderr.  */
6 /* { dg-allow-blank-lines-in-output 1 } */
7 
8 unsigned a[100], b[100];
bar()9 inline void bar()
10 {
11  a[10] = b[10];
12 }
13 
foo(void)14 int foo(void)
15 {
16   int i;
17   bar();
18   for (i = 0; i < 2; i++) /* { dg-optimized "loop with 2 iterations completely unrolled" } */
19   {
20      a[i]= b[i] + 1;
21   }
22   return 1;
23 }
24 
foo2(void)25 int foo2(void)
26 {
27   int i;
28   for (i = 0; i < 2; i++) /* { dg-optimized "loop with 2 iterations completely unrolled" } */
29   {
30      a[i]= b[i] + 1;
31   }
32   return 1;
33 }
34 /* { dg-prune-output ".*" } */
35