(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
predict-20.c
       1  /* PR tree-optimization/86925 */
       2  
       3  /* { dg-do compile } */
       4  /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
       5  
       6  int a, b;
       7  
       8  void
       9  c ()
      10  {
      11    for (;;)
      12      {
      13        if (__builtin_expect (b < 0, 0))
      14  	break;
      15        if (__builtin_expect (a, 1))
      16  	break;
      17      }
      18    int d = b < 0;
      19    /* We fail to apply __builtin_expect heuristics here.  Se PR109210.  */
      20    if (__builtin_expect (d, 0))
      21      asm("");
      22  }
      23  
      24  /* { dg-final { scan-tree-dump-times "__builtin_expect heuristics of edge" 2 "profile_estimate" } } */