blob: 4541b1ccf028a36d15a80f85528e9809c3691121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-options "-fdump-tree-original" } */
unsigned int
my_mod (unsigned int a, unsigned int b)
{
return a % (1 << b);
}
/* The above should be simplified to (unsigned int) ((1 << b) + -1) & a */
/* { dg-final { scan-tree-dump "& a;" "original" } } */
|