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: patches to reorg.c for c4x


Jeffrey A Law writes:

 > My first question is how did we end up with an insn which sets CC0
 > in a delay slot?  I think that is the real root of the problem -- I
 > do not think that should be happening.

 > I suspect there's something funny going on in the c4x backend which
 > is leading to this problem.  The conditional branch should
 > (effectively) use the cc0 reg, which should in turn prevent an insn 
 >  which sets the cc0 reg from being placed in its delay slot.  Right?

The c4x doesn't use cc0, it uses a hard register for CC. 

I think the problem this patch fixes is not exposed by other targets
which only have a single delay slot.

Michael.





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