* fold-const.c (fold) [EQ_EXPR]: Place both integer and real
[official-gcc.git] / gcc / testsuite / gcc.dg / 980313-1.c
blob1036339b076c90899ecfe381d9fb29032344749b
1 /* { dg-do link { target i?86-*-* } } */
2 /* { dg-options "-O2 -march=pentiumpro" } */
4 extern __inline double
5 __expm1 (double __x)
7 double __temp;
8 __temp -= 1.0;
9 return __temp;
11 extern __inline double
12 __sgn1 (double __x)
14 return __x >= 0.0 ? 1.0 : -1.0;
16 double
17 tanh (double __x)
19 register double __exm1 = __expm1 (__x);
20 return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
22 main ()
24 return tanh (3.45) != 0;