Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/negneq-2.c

raw
1 /* PR tree-optimization/110134 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fdump-tree-optimized" } */
4
5 int fu(unsigned a)
6 {
7 a = -a;
8 return a == 1;
9 }
10 int fs(signed a)
11 {
12 a = -a;
13 return a == 1;
14 }
15
16 /* We should have optimized out the a = -a; statements. */
17 /* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */