(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-modpow2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-fdump-tree-original" } */
       3  
       4  unsigned int
       5  my_mod (unsigned int a, unsigned int b)
       6  {
       7    return a % (1 << b);
       8  }
       9  
      10  /* The above should be simplified to (unsigned int) ((1 << b) + -1) & a */
      11  /* { dg-final { scan-tree-dump "& a;" "original" } } */