Add thumb2 add sp.

llvm-svn: 74156
This commit is contained in:
Evan Cheng 2009-06-25 01:21:30 +00:00
parent 8a08866378
commit 6ea7ad0351
1 changed files with 15 additions and 0 deletions

View File

@ -341,6 +341,21 @@ def t2LEApcrelJT : T2I<(outs GPR:$dst),
"add$p $dst, pc, #PCRELV${:uid}")),
[]>;
// ADD rd, sp, #so_imm
def t2ADDrSPi : T2I<(outs GPR:$dst), (ins GPR:$sp, t2_so_imm:$imm),
"add $dst, $sp, $imm",
[]>;
// ADD rd, sp, #imm12
def t2ADDrSPi12 : T2I<(outs GPR:$dst), (ins GPR:$sp, i32imm:$imm),
"addw $dst, $sp, $imm",
[]>;
def t2ADDrSPs : T2I<(outs GPR:$dst), (ins GPR:$sp, t2_so_reg:$rhs),
"addw $dst, $sp, $rhs",
[]>;
//===----------------------------------------------------------------------===//
// Arithmetic Instructions.
//