summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/fold-abs-4.c
blob: 8bf02a808b08cd516776601340f5fdd1ad5041b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple -fwrapv" } */
extern float fabsf (float);
extern float cabsf (_Complex float);

int f (float a) {
	return fabsf(a) < 0.0;
}

int g (_Complex float a) {
	return cabsf (a) < 0.0;
}

/* { dg-final { scan-tree-dump-times "ABS" 0 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */
OpenPOWER on IntegriCloud