1/* { dg-do compile } */
2/* { dg-options "-fdump-tree-gimple -ffast-math" } */
3/* Test for folding abs(x) where appropriate.  */
4#define abs(x) x > 0 ? x : -x
5extern double fabs (double);
6
7int a (float x) {
8	return fabs(x) >= 0.0;
9}
10
11/* { dg-final { scan-tree-dump-times "ABS_EXPR" 0 "gimple" } } */
12/* { dg-final { cleanup-tree-dump "gimple" } } */
13