From 16e0f2bde3258bb00a6dfad000d6f0931472b1d6 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 24 Jan 2012 04:58:56 +0000 Subject: [PATCH] Use correct register class for am2offset register operands. This pacifies machine verifier llvm-svn: 148782 --- lib/Target/ARM/ARMInstrInfo.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 64a47aad4de..e319047d38b 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -766,7 +766,7 @@ def am2offset_reg : Operand, let PrintMethod = "printAddrMode2OffsetOperand"; // When using this for assembly, it's always as a post-index offset. let ParserMatchClass = PostIdxRegShiftedAsmOperand; - let MIOperandInfo = (ops GPR, i32imm); + let MIOperandInfo = (ops GPRnopc, i32imm); } // FIXME: am2offset_imm should only need the immediate, not the GPR. Having @@ -778,7 +778,7 @@ def am2offset_imm : Operand, let EncoderMethod = "getAddrMode2OffsetOpValue"; let PrintMethod = "printAddrMode2OffsetOperand"; let ParserMatchClass = AM2OffsetImmAsmOperand; - let MIOperandInfo = (ops GPR, i32imm); + let MIOperandInfo = (ops GPRnopc, i32imm); }