2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 980313-1.c
blob66920fc5decdb476d45623c64e87ab6fae3e2397
1 /* { dg-do link } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-O2 -march=pentiumpro -fgnu89-inline" } */
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 int
24 main ()
26 return tanh (3.45) != 0;