correct register class for tADDspi to GPR since the register will always be SP
[oota-llvm.git] / lib / Target / ARM / ARMInstrThumb.td
index 914be0390b4b6f3682b6042a01ce5faa8c296ce9..ffb83a8b4d364b583d80eff6b2a7b7b923499254 100644 (file)
@@ -307,7 +307,7 @@ def tADDrPCi : TI<(outs tGPR:$dst), (ins i32imm:$rhs),
 def tADDrSPi : TI<(outs tGPR:$dst), (ins GPR:$sp, i32imm:$rhs),
                   "add $dst, $sp, $rhs * 4 @ addrspi", []>;
 
-def tADDspi : TIt<(outs tGPR:$dst), (ins tGPR:$lhs, i32imm:$rhs),
+def tADDspi : TIt<(outs GPR:$dst), (ins GPR:$lhs, i32imm:$rhs),
                   "add $dst, $rhs * 4", []>;
 
 def tAND : TIt<(outs tGPR:$dst), (ins tGPR:$lhs, tGPR:$rhs),