]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/negneq-3.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / negneq-3.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, unsigned b)
6{
7 a = -a;
8 b = -b;
9 return a == b;
10}
11int fs(signed a, signed b)
12{
13 a = -a;
14 b = -b;
15 return a == b;
16}
17
18/* We should have optimized out the a = -; statements. */
19/* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */
20/* { dg-final { scan-tree-dump-not "= -b" "optimized" } } */