summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-sub.c
blob: 28a8dd51fda43c20d29ca28b2e11e9f577efb98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-ffinite-math-only -fdump-tree-gimple" } */

float f(float x)
{
  return x - x;
}

/* Substraction should be turned into 0.  */

/* { dg-final { scan-tree-dump-not " - " "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */