Add thumb2 add sp.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 25 Jun 2009 01:21:30 +0000 (01:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 25 Jun 2009 01:21:30 +0000 (01:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74156 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index 99ebaf0d39c4080886e1ffbf107525cb4d5d1064..1ee6ebd925ec9afafd932e416e44944dc0408593 100644 (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.
 //