]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/overflow-1.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / overflow-1.c
CommitLineData
ca1206be
MG
1/* { dg-do compile } */
2/* { dg-options "-O -fdump-tree-optimized" } */
3
54eb90fe
SKS
4#if __SIZEOF_INT__ < 4
5 __extension__ typedef __UINT32_TYPE__ uint32_t;
6#else
7 typedef unsigned uint32_t;
8#endif
9
10int f(uint32_t a){
11 uint32_t b=5;
12 uint32_t c=a-b;
ca1206be
MG
13 return c>a;
14}
54eb90fe
SKS
15int g(uint32_t a){
16 uint32_t b=32;
17 uint32_t c=a+b;
ca1206be
MG
18 return c<a;
19}
20
21/* { dg-final { scan-tree-dump "a_\[0-9\]+.D. <= 4;" "optimized" } } */
22/* { dg-final { scan-tree-dump "a_\[0-9\]+.D. > 4294967263;" "optimized" } } */