mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
For Thumb indirect branches, use "mov pc, reg" which does not switch
between ARM/Thumb modes and does not require the low bit of the target address to be set for Thumb. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36d52bf4df
commit
af14e663ac
@ -182,7 +182,7 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1 in {
|
||||
|
||||
// Indirect branches
|
||||
let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in {
|
||||
def tBRIND : TI<(outs), (ins GPR:$dst), IIC_Br, "bx\t$dst",
|
||||
def tBRIND : TI<(outs), (ins GPR:$dst), IIC_Br, "mov\tpc, $dst",
|
||||
[(brind GPR:$dst)]>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user