(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-convlshift-1.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-optimized" } */
       3  
       4  unsigned int foo(unsigned int i)
       5  {
       6    int t1 = i;
       7    int t2 = t1 << 8;
       8    return t2;
       9  }
      10  
      11  int bar(int i)
      12  {
      13    unsigned int t1 = i;
      14    unsigned int t2 = t1 << 8;
      15    return t2;
      16  }
      17  
      18  /* { dg-final { scan-tree-dump-not "\\(int\\)" "optimized" } } */
      19  /* { dg-final { scan-tree-dump-not "\\(unsigned int\\)" "optimized" } } */
      20