This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PPro patch for egcs
- To: john at feith dot com (John Wehle)
- Subject: Re: PPro patch for egcs
- From: hjl at lucon dot org (H.J. Lu)
- Date: Sat, 6 Jun 1998 12:51:31 -0700 (PDT)
- Cc: law at cygnus dot com, egcs-patches at cygnus dot com
>
> 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 ();
}