(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
predict-4.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 < 10; i++)
      12      {
      13        if (i < 5)
      14  	global += bar (i);
      15      }
      16  }
      17  
      18  /* { dg-final { scan-tree-dump "  loop iv compare heuristics of edge\[^:\]*: 50.00%" "profile_estimate"} } */