(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
phi-opt-8.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-optimized -fdump-tree-phiopt2" } */
       3  
       4  int g(int,int);
       5  int f(int t, int c)
       6  {
       7    int d = 0;
       8    int e = 0;
       9    if (t)
      10      {
      11        d = 1;
      12        e = t;
      13      }
      14    else d = 0, e = 0;
      15    return g(e,d);
      16  }
      17  
      18  /* This testcase should be reduced to e = t; d = t != 0; in phiopt1
      19     but currently is not as PHI-OPT does not reduce the t PHI as we have
      20     two phis.  Note this is fixed with
      21     http://gcc.gnu.org/ml/gcc-patches/2012-01/msg01195.html .  */
      22  /* { dg-final { scan-tree-dump-not "if" "phiopt2" } } */
      23  /* { dg-final { scan-tree-dump "g .t_\[0-9\]*.D.," "optimized" } } */
      24  /* { dg-final { scan-tree-dump-not "PHI" "optimized" } } */