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 } */
7 return (x
> 0.f
? -1.f
: 1.f
);
11 return (x
> 0.f
? 1.f
: -1.f
);
15 return (x
>= 0.f
? -1.f
: 1.f
);
19 return (x
>= 0.f
? 1.f
: -1.f
);
23 return (x
< 0.f
? -1.f
: 1.f
);
27 return (x
< 0.f
? 1.f
: -1.f
);
31 return (x
<= 0.f
? -1.f
: 1.f
);
35 return (x
<= 0.f
? 1.f
: -1.f
);
37 /* { dg-final { scan-tree-dump-times "copysign" 8 "gimple"} } */