gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-41.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 3 | |
| 4 | #if __SIZEOF_INT__ == 2 |
| 5 | #define int __INT32_TYPE__ |
| 6 | #endif |
| 7 | |
| 8 | int foo(int x) |
| 9 | { |
| 10 | int p = x & 24; |
| 11 | int r = 1 << p; |
| 12 | return r & ((int)1<<17); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */ |