(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
phi-opt-26.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fgimple -fdump-tree-phiopt1" } */
       3  
       4  int __GIMPLE (ssa,startwith("phiopt"))
       5  foo (int a, int b, int flag)
       6  {
       7    int res;
       8  
       9    __BB(2):
      10    if (flag_2(D) != 0)
      11      goto __BB6;
      12    else
      13      goto __BB4;
      14  
      15    __BB(4):
      16    if (a_3(D) > b_4(D))
      17      goto __BB7;
      18    else
      19      goto __BB6;
      20  
      21    __BB(6):
      22    goto __BB7;
      23  
      24    __BB(7):
      25    res_1 = __PHI (__BB4: a_3(D), __BB6: b_4(D));
      26    return res_1;
      27  }
      28  
      29  /* We should be able to detect MAX despite the extra edge into
      30     the middle BB.  */
      31  /* { dg-final { scan-tree-dump "MAX" "phiopt1" } } */