1 /* { dg-do compile } */
2 /* { dg-require-effective-target c99_runtime } */
3 /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
4 /* { dg-add-options c99_runtime } */
8 return x
* (x
> 0.f
? -1.f
: 1.f
);
12 return x
* (x
> 0.f
? 1.f
: -1.f
);
16 return x
* (x
>= 0.f
? -1.f
: 1.f
);
20 return x
* (x
>= 0.f
? 1.f
: -1.f
);
24 return x
* (x
< 0.f
? -1.f
: 1.f
);
28 return x
* (x
< 0.f
? 1.f
: -1.f
);
32 return x
* (x
<= 0.f
? -1.f
: 1.f
);
36 return x
* (x
<= 0.f
? 1.f
: -1.f
);
38 /* { dg-final { scan-tree-dump-times "ABS" 8 "gimple"} } */