]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-41.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ccp-41.c
CommitLineData
b2ef2323
RS
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-optimized" } */
3
42d6b7d5
GJL
4#if __SIZEOF_INT__ == 2
5#define int __INT32_TYPE__
6#endif
7
b2ef2323
RS
8int foo(int x)
9{
10 int p = x & 24;
11 int r = 1 << p;
42d6b7d5 12 return r & ((int)1<<17);
b2ef2323
RS
13}
14
15/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */