mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Use BL to implement Thumb far jumps.
llvm-svn: 33649
This commit is contained in:
parent
1800f109f8
commit
a16118a6cf
@ -195,6 +195,9 @@ let isCall = 1, noResults = 1,
|
||||
let isBranch = 1, isTerminator = 1, isBarrier = 1 in {
|
||||
def tB : TI<(ops brtarget:$dst), "b $dst", [(br bb:$dst)]>;
|
||||
|
||||
// Far jump
|
||||
def tBfar : TIx2<(ops brtarget:$dst), "bl $dst\t@ far jump", []>;
|
||||
|
||||
def tBR_JTr : TJTI<(ops GPR:$dst, jtblock_operand:$jt, i32imm:$id),
|
||||
"cpy pc, $dst \n\t.align\t2\n$jt",
|
||||
[(ARMbrjt GPR:$dst, tjumptable:$jt, imm:$id)]>;
|
||||
|
Loading…
Reference in New Issue
Block a user