Commit 3abe23a0 by H.J. Lu Committed by Jeff Law

980312-1.c: Do link instead of compile.

        * gcc.dg/980312-1.c: Do link instead of compile.
        * gcc.dg/980313-1.c: Likewise.

From-SVN: r21391
parent 60aeab7f
Sun Jul 26 01:15:56 1998 H.J. Lu (hjl@gnu.org)
* gcc.dg/980312-1.c: Do link instead of compile.
* gcc.dg/980313-1.c: Likewise.
Sun Jul 26 01:05:02 1998 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/980726-1.c: New test.
......
/* { dg-do compile { target i?86-*-* } } */
/* { dg-do link { target i?86-*-* } } */
/* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double
......@@ -18,3 +18,7 @@ tanh (double __x)
{
return __expm1 (__x) * __sgn1 (-__x);
}
main ()
{
return tanh (3.45) != 0;
}
/* { dg-do compile { target i?86-*-* } } */
/* { dg-do link { target i?86-*-* } } */
/* { dg-options "-O2 -march=pentiumpro" } */
extern __inline double
......@@ -19,3 +19,7 @@ tanh (double __x)
register double __exm1 = __expm1 (__x);
return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
}
main ()
{
return tanh (3.45) != 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment