Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 980312-1.c
blob72cdd5e3f36a39d954db0f48694880851505c67c
1 /* { dg-do link } */
2 /* { dg-require-effective-target ilp32 } */
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;