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: cc register usage on i386/2.96


On Fri, Sep 08, 2000 at 02:32:22PM +0200, Jan Hubicka wrote:
> But thinks don't work as expected and the overflow bit is set incorrectly.
> It seems to me, that overflow is not set properly even for add/sub
> instructions and thus we should disable the CCmode version of the patterns...

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?

Well, a similar test with subtract does seem to work, so you
only need to diable CCmode add.


r~

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