This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A new test case for PPro (update)


> 
> 	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);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]