1 /* { dg-do compile } */
2 /* { dg-require-effective-target c99_runtime } */
3 /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
7 return x
* (x
> 0.f
? -1.f
: 1.f
);
11 return x
* (x
> 0.f
? 1.f
: -1.f
);
15 return x
* (x
>= 0.f
? -1.f
: 1.f
);
19 return x
* (x
>= 0.f
? 1.f
: -1.f
);
23 return x
* (x
< 0.f
? -1.f
: 1.f
);
27 return x
* (x
< 0.f
? 1.f
: -1.f
);
31 return x
* (x
<= 0.f
? -1.f
: 1.f
);
35 return x
* (x
<= 0.f
? 1.f
: -1.f
);
38 /* { dg-final { scan-tree-dump-times "ABS" 8 "gimple" } } */