]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/branchless-cond-add-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / branchless-cond-add-2.c
CommitLineData
55fcaa9a
AP
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-optimized" } */
3/* PR tree-optimization/97711 */
4
5int f (int x) { return x & 1 ? x - 1 : x; }
6
7/* { dg-final { scan-tree-dump-times " & -2" 1 "optimized" } } */
8/* { dg-final { scan-tree-dump-not "if " "optimized" } } */