This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: 32 bit jump instruction.


On 12/13/06, Joern Rennecke <amylaar@spamcop.net> wrote:
In http://gcc.gnu.org/ml/gcc/2006-12/msg00328.html, you wrote:
However, because the SH has delayed branches, there is always a guaranteed way
to find a register - one can be saved, and then be restored in the delay slot.

Heh, that's an interesting feature :-)


How does that work?  I always thought that the semantics of delayed
insns is that the insn in the delay slot is executed *before* the
branch. But that is apparently not the case, or the branch register
would have been over-written before the branch. How does that work on
SH?

Gr.
Steven


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