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

double f(double x)
{
  return x / x;
}

/* Division should be turned into 1.0.  */

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