aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/negneq-1.c
blob: 94ff57d511ba31c33208d4b59bd848b5aae4e2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/110134 */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */

int fu(unsigned a)
{
  a = -a;
  return a != 0;
}
int fs(signed a)
{
  a = -a;
  return a != 0;
}

/* We should have optimized out the a = -a; statements. */
/* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */