(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
pr92734.c
       1  /* PR tree-optimization/92734 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fdump-tree-forwprop1" } */
       4  /* { dg-final { scan-tree-dump-times "return t_\[0-9]*\\\(D\\\);" 4 "forwprop1" } } */
       5  
       6  int
       7  f1 (int t)
       8  {
       9    return 1 - (int) (1U - t);
      10  }
      11  
      12  int
      13  f2 (int t)
      14  {
      15    int a = 7U - t;
      16    return 7 - a;
      17  }
      18  
      19  int
      20  f3 (int t)
      21  {
      22    int a = 32U - t;
      23    return 32 - a;
      24  }
      25  
      26  int
      27  f4 (int t)
      28  {
      29    int a = 32 - t;
      30    return (int) (32 - (unsigned) a);
      31  }