This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Delay slot problem
- From: Camo Johnson <da_cramp at yahoo dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 20 May 2011 15:07:01 +0100 (BST)
- Subject: Delay slot problem
Hello,
I have some trouble dealing with delay slots. The problem is that our
architecture can't handle branch instructions using registers which have been
changed in the previous instruction. So a delay slot is needed.
The difficult part is, that this delay slot is only needed if the same register
is used in the branch instruction. I have no idea how I should describe this
using the instruction attributes which are usually used for delay slots. Is it
somehow possible to extract the register number and store it in a const_int
attribute?
Thanks in advance!
Eric Neumann