remove unused files
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / predict-3.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3
4 extern int global;
5
6 int bar(int);
7
8 void foo (int bound)
9 {
10   int i, ret = 0;
11   for (i = 0; i <= bound; i++)
12     {
13       if (i < bound - 2)
14         global += bar (i);
15       if (i <= bound)
16         global += bar (i);
17       if (i + 1 < bound)
18         global += bar (i);
19       if (i != bound)
20         global += bar (i);
21     }
22 }
23
24 /* { dg-final { scan-tree-dump-times "loop iv compare heuristics: 100.0%" 4 "profile_estimate"} } */
25 /* { dg-final { cleanup-tree-dump "profile_estimate" } } */