search for: branch32

Displaying 2 results from an estimated 2 matches for "branch32".

2017 Jan 19
3
Got stuck with PC-rel branching
...l 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 EncoderMethod "getJumpTargetOpValue&quo...
2017 Jan 19
2
Got stuck with PC-rel branching
...ey 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 EncoderMethod &g...