Displaying 2 results from an estimated 2 matches for "epiphanyinstrinfo".
2017 Jan 19
3
Got stuck with PC-rel branching
...uck with branching.
When I'm printing out asm, all branch labels are printed as they should be.
But when I'm trying to generate obj file, I'm getting zeros instead of
PC-related offset in all branch instructions.
In short, what I'm doing:
- Pattern (br bb:$addr) is selected using EpiphanyInstrInfo.td as
BNONE32(ins jmptarget:$addr), Branch32 class
- Branch32 class is defined in EpiphanyInstrFormats.td with bits<24> addr,
which should go into bits{31-8} of the MC instruction. Those bits remain
zeros after relaxation for some reason.
- jmptarget operand has type OPERAND_PCREL, and uses...
2017 Jan 19
2
Got stuck with PC-rel branching
...#39;m printing out asm, all branch labels are printed as they should
> be. But when I'm trying to generate obj file, I'm getting zeros instead of
> PC-related offset in all branch instructions.
>
> In short, what I'm doing:
>
> - Pattern (br bb:$addr) is selected using EpiphanyInstrInfo.td as
> BNONE32(ins jmptarget:$addr), Branch32 class
>
> - Branch32 class is defined in EpiphanyInstrFormats.td with bits<24> addr,
> which should go into bits{31-8} of the MC instruction. Those bits remain
> zeros after relaxation for some reason.
>
> - jmptarget operand...