gcc/testsuite/gcc.dg/tree-ssa/pr117420.c
raw| 1 | /* PR tree-optimization/117420 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -fno-tree-ccp -fdump-tree-optimized" } */ |
| 4 | /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */ |
| 5 | |
| 6 | int |
| 7 | foo (unsigned long x, unsigned long y) |
| 8 | { |
| 9 | x |= 0x11000L; |
| 10 | x &= ~0xfffL; |
| 11 | x += 42L; |
| 12 | y &= ~0x10ffL; |
| 13 | y |= 0x100L; |
| 14 | y += 21L; |
| 15 | return x == y; |
| 16 | } |