Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / 980313-1.c
blob75566222116bc590382639d1468d211b47eb0c83
1 /* { dg-do link { target i?86-*-* } } */
2 /* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
3 /* { dg-options "-O2 -march=pentiumpro" } */
5 extern __inline double
6 __expm1 (double __x)
8 double __temp;
9 __temp -= 1.0;
10 return __temp;
12 extern __inline double
13 __sgn1 (double __x)
15 return __x >= 0.0 ? 1.0 : -1.0;
17 double
18 tanh (double __x)
20 register double __exm1 = __expm1 (__x);
21 return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
23 main ()
25 return tanh (3.45) != 0;