(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-minus-7.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-cddce1" } */
       3  
       4  int
       5  f1 (int a, int b)
       6  {
       7    int tem = a & b;
       8    return a - tem;
       9  }
      10  
      11  int
      12  f2 (int a, int b)
      13  {
      14    int tem = b & a;
      15    return a - tem;
      16  }
      17  
      18  int
      19  f3 (unsigned int a, int b)
      20  {
      21    return a - (a & b);
      22  }
      23  
      24  int
      25  f4 (int a, unsigned int b)
      26  {
      27    return a - (a & b);
      28  }
      29  
      30  int
      31  f5 (int a, int b)
      32  {
      33    return a - (unsigned) (b & a);
      34  }
      35  
      36  /* { dg-final { scan-tree-dump-not " - " "cddce1" } } */