Thumb add SP assembly syntax fix.
authorJim Grosbach <grosbach@apple.com>
Wed, 24 Aug 2011 18:04:27 +0000 (18:04 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 24 Aug 2011 18:04:27 +0000 (18:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138448 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index 4d3bd079a83734b6460d9ceebdff4ab757e47ece..3b2f02871064c9d8dd036762efa9a77de771be20 100644 (file)
@@ -338,8 +338,8 @@ def tSUBspi : T1pIt<(outs GPRsp:$Rdn), (ins GPRsp:$Rn, t_imm_s4:$rhs),
 }
 
 // ADD <Rm>, sp
-def tADDrSP : T1pIt<(outs GPR:$Rdn), (ins GPR:$Rn, GPRsp:$rhs), IIC_iALUr,
-                  "add", "\t$Rdn, $rhs", []>,
+def tADDrSP : T1pIt<(outs GPR:$Rdn), (ins GPR:$Rn, GPRsp:$sp), IIC_iALUr,
+                  "add", "\t$Rdn, $sp, $Rn", []>,
               T1Special<{0,0,?,?}> {
   // A8.6.9 Encoding T1
   bits<4> Rdn;