This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
branch insn question
- From: Dmitry Eremin-Solenikov <dbaryshkov at gmail dot com>
- To: cgen at sources dot redhat dot com
- Date: Sat, 9 Jan 2010 19:45:24 +0300
- Subject: branch insn question
Hello,
I've a small problem with branch instructions on my platorm (m68hc08).
All branch instructions are only short-ranged (signed 8bit offset).
The recommended way to handle this is to emit jump-over code: instead of
beq _long_label
emit:
bne .Lshort
jmp _long_label
.Lshort:
My question is: should this be handled somehow by cgen? Or this should
be completely done via gas relaxation? And what attributes should I use
on branch instructions in .cpu file?
Thank you.
--
With best wishes
Dmitry