search for: epiphanyinstrformat

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

Did you mean: epiphanyinstrformats
2017 Jan 19
3
Got stuck with PC-rel branching
...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" defined in EpiphanyMCCodeEmitter. If this method gets M...
2017 Jan 19
2
Got stuck with PC-rel branching
...bj 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" defined in EpiphanyMCCodeEmitte...