From c93f96187459b1f09b328e3cf6eade173909ce53 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Tue, 12 May 2009 22:30:18 +0000 Subject: [PATCH] correct register class for tADDspi to GPR since the register will always be SP git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71602 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrThumb.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 914be0390b4..ffb83a8b4d3 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -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), -- 2.34.1