(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-and-rshift-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-original" } */
       3  
       4  #if __SIZEOF_INT__ < 4
       5  #define unsigned __UINT32_TYPE__
       6  #endif
       7  
       8  unsigned f(unsigned x)
       9  {
      10  	return (x >> 29) & 32;
      11  }
      12  
      13  unsigned g(unsigned x)
      14  {
      15  	return !!(x & 0x80000000) << 5;
      16  }
      17  
      18  unsigned j(unsigned x)
      19  {
      20  	return ((x >> 31) & 1) ? 32 : 0;
      21  }
      22  
      23  unsigned k(unsigned x)
      24  {
      25  	return (x & 0x80000000) ? 32 : 0;
      26  }
      27  
      28  /* { dg-final { scan-tree-dump-not " \\? " "original" } } */
      29  /* { dg-final { scan-assembler-not "sall" { target i?86-*-* x86_64-*-* } } }" */