blob: 31b4816543227afc48f75830726c6d8133671032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* PR middle-end/33187 */
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -march=k8 -mbranch-cost=5 -mfpmath=387" } */
/* { dg-final { scan-assembler "fcmov" } } */
/* compress_float_constant generates load + float_extend
sequence which combine pass failed to combine into
(set (reg:DF) (float_extend:DF (mem:SF (symbol_ref...)))). */
double
sgn (double __x)
{
return __x >= 0.0 ? 1.0 : -1.0;
}
|