Shuffle ChangeLog entries into new files ChangeLog-1998,
[official-gcc.git] / gcc / testsuite / gcc.dg / 980312-1.c
blob83f1488745aca8a1f5c852b74780fb3a24661b10
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 return __expm1 (__x) * __sgn1 (-__x);
22 main ()
24 return tanh (3.45) != 0;