]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/negneq-4.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / negneq-4.c
1 /* PR tree-optimization/110134 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fdump-tree-optimized" } */
4
5 int fu(unsigned a, unsigned b)
6 {
7 a = -a;
8 b = -b;
9 return a != b;
10 }
11 int 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" } } */