PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-eqandshift-3.c
blobd3b4adcf76c69710d7d70044c72e9c67f1299f18
1 /* PR middle-end/29726 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
5 void foo (void);
7 int test1 (int a)
9 if ((a >> 3) & 134217728)
10 foo ();
13 int test2 (unsigned int b)
15 if ((b >> 3) & 134217728)
16 foo ();
19 /* { dg-final { scan-tree-dump-times "\\(a \& 1073741824\\) != 0" 1 "original" } } */
20 /* { dg-final { scan-tree-dump-times "\\(b \& 1073741824\\) != 0" 1 "original" } } */
21 /* { dg-final { cleanup-tree-dump "original" } } */