This is the mail archive of the gcc-patches@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: PPro patch for egcs


> 
> I'm still a little unclear what triggers the removal of
> a required (set (cc0) ...).  I believe that the work around
> currently implemented for i386 depends on (in part) the fact
> that only a required test against zero will be removed.
> 
> H.J. -- can you supply me a test case which requires the:
> 
>        case GE:
>          if (cc_prev_status.flags & CC_NO_OVERFLOW)
>            fputs ("ns", file);
>          else
>            fputs ("ge", file);
> 
> change to put_condition_code?  Thanks.
> 

I have provided a bunch of testcases for various PPro bugs. You
can find loop.c among them. Before you make any changes, please
run my testcases first. If you didn't get them, I can send them
to you again.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
----loop.c----
int
foo (int x, int y)
{
  x = x - y;

  if (x >= 0)
    y = 0;

  return y == 0 ? 1 : 0;
}

main ()
{
  if (foo (-0x7fffffff, 300) == 0)
    abort ();
}


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