]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/negneq-1.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / negneq-1.c
CommitLineData
cc155ff9
AP
1/* PR tree-optimization/110134 */
2/* { dg-do compile } */
3/* { dg-options "-O1 -fdump-tree-optimized" } */
4
5int fu(unsigned a)
6{
7 a = -a;
8 return a != 0;
9}
10int fs(signed a)
11{
12 a = -a;
13 return a != 0;
14}
15
16/* We should have optimized out the a = -a; statements. */
17/* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */