]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr96232-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr96232-2.c
1 /* PR tree-optimization/96232 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump " 38 - " "optimized" } } */
5 /* { dg-final { scan-tree-dump " \\+ 97;" "optimized" } } */
6 /* { dg-final { scan-tree-dump-not "PHI <" "optimized" } } */
7
8 int
9 foo (_Bool x)
10 {
11 return x ? 37 : 38;
12 }
13
14 int
15 bar (_Bool x)
16 {
17 return x ? 98 : 97;
18 }