]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr110539-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr110539-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
3 int f(int a)
4 {
5 int b = a & 1;
6 int c = b == 0;
7 return c == b;
8 }
9
10 /* This should be optimized to just return 0; */
11 /* { dg-final { scan-tree-dump-not " == " "optimized"} } */
12 /* { dg-final { scan-tree-dump "return 0;" "optimized"} } */