(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
pr88676-2.c
       1  /* PR tree-optimization/88676 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fdump-tree-phiopt2" } */
       4  /* { dg-final { scan-tree-dump-not " = PHI <" "phiopt2" { target le } } } */
       5  
       6  struct foo1 {
       7    int i:1;
       8  };
       9  struct foo2 {
      10    unsigned i:1;
      11  };
      12  
      13  int test1 (struct foo1 *x)
      14  {
      15    if (x->i == 0)
      16      return 1;
      17    else if (x->i == 1)
      18      return 1;
      19    return 0;
      20  }
      21  
      22  int test2 (struct foo2 *x)
      23  {
      24    if (x->i == 0)
      25      return 1;
      26    else if (x->i == -1)
      27      return 1;
      28    return 0;
      29  }
      30