2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-4.c
blob2ac2ec5721d2a00a9ea886b0076111338e083781
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 extern int global;
6 int bar(int);
8 void foo (int bound)
10 int i, ret = 0;
11 for (i = 0; i < 10; i++)
13 if (i < 5)
14 global += bar (i);
18 /* { dg-final { scan-tree-dump " loop iv compare heuristics of edge\[^:\]*: 50.0%" "profile_estimate"} } */