This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A new test case for PPro (update)
- To: wilson at cygnus dot com (Jim Wilson)
- Subject: Re: A new test case for PPro (update)
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 18 Mar 1998 16:10:23 -0800 (PST)
- Cc: egcs at cygnus dot com, scox at cygnus dot com
>
> There are more than one bugs on PPro.
>
> There are two bugs, the reg-stack bug and the i386.md bug.
>
> The i386.md bug can be reproduced by many different testcases, but it is
> still only one bug, and only needs one testcase.
>
There are more bugs than I thought. Here is the test case I sent
you earlier today. I believe Stan had a reason to keep the way
it was in i386.md. This bug may be in i386.md, reload and/or
local/global register allocation.
--
H.J. Lu (hjl@gnu.org)
----
typedef double real;
typedef struct { real r, i; } complex;
extern __inline double sin ( double __x)
{
register double __result;
__asm __volatile__ ( "fsin" : "=t" (__result) : "0" (__x) );
return __result;
}
extern __inline double __sgn1l ( double __x )
{
return __x >= 0.0 ? 1.0 : -1.0;
}
extern __inline double sinh ( double __x )
{
return __x * __sgn1l (__x);
}
void c_cos(complex *resx, complex *z)
{
resx->i = - sin(z->r) * sinh(z->i);
}