This is the mail archive of the
mailing list for the GCC project.
Re: cc register usage on i386/2.96
On Sat, Sep 09, 2000 at 02:11:17PM +1100, Alan Modra wrote:
> > How irritating. The thing is, I can't figure why setg tests
> > the overflow flag at all. Why doesn't it test zf==0 && sf==0?
> Consider a compare (ie. subtract) of MAXINT with -1. Result is MAXINT+1,
> which has sf==1, yet clearly MAXINT > -1.
Hmph. So Clearly what I wanted was a richer set of comparison
primitives. I'm thinking tri-state for each eflags bit. ;-)