mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
Move some code to a more logical place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
106acd4158
commit
8e9bace414
@ -361,14 +361,6 @@ def tADDspr : TIt<(outs GPR:$dst), (ins GPR:$lhs, GPR:$rhs), IIC_iALUr,
|
||||
//
|
||||
|
||||
let isReturn = 1, isTerminator = 1, isBarrier = 1 in {
|
||||
def tBX_RET : TI<(outs), (ins), IIC_Br, "bx\tlr",
|
||||
[(ARMretflag)]>,
|
||||
T1Special<{1,1,0,?}> {
|
||||
// A6.2.3 & A8.6.25
|
||||
let Inst{6-3} = 0b1110; // Rm = lr
|
||||
let Inst{2-0} = 0b000;
|
||||
}
|
||||
|
||||
def tBX : TI<(outs), (ins GPR:$Rm, pred:$p), IIC_Br, "bx${p}\t$Rm", []>,
|
||||
T1Special<{1,1,0,?}> {
|
||||
// A6.2.3 & A8.6.25
|
||||
@ -377,6 +369,14 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1 in {
|
||||
let Inst{2-0} = 0b000;
|
||||
}
|
||||
|
||||
def tBX_RET : TI<(outs), (ins), IIC_Br, "bx\tlr",
|
||||
[(ARMretflag)]>,
|
||||
T1Special<{1,1,0,?}> {
|
||||
// A6.2.3 & A8.6.25
|
||||
let Inst{6-3} = 0b1110; // Rm = lr
|
||||
let Inst{2-0} = 0b000;
|
||||
}
|
||||
|
||||
// Alternative return instruction used by vararg functions.
|
||||
def tBX_RET_vararg : TI<(outs), (ins tGPR:$Rm),
|
||||
IIC_Br, "bx\t$Rm",
|
||||
|
Loading…
x
Reference in New Issue
Block a user