[llvm-commits] [llvm] r136091 - /llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
Jim Grosbach
grosbach at apple.com
Tue Jul 26 09:44:05 PDT 2011
Author: grosbach
Date: Tue Jul 26 11:44:05 2011
New Revision: 136091
URL: http://llvm.org/viewvc/llvm-project?rev=136091&view=rev
Log:
ARM fix asm parsing range check for [0,31] immediates.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=136091&r1=136090&r2=136091&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Tue Jul 26 11:44:05 2011
@@ -494,7 +494,9 @@
def Imm0_31AsmOperand: AsmOperandClass { let Name = "Imm0_31"; }
def imm0_31 : Operand<i32>, ImmLeaf<i32, [{
return Imm >= 0 && Imm < 32;
-}]>;
+}]> {
+ let ParserMatchClass = Imm0_31AsmOperand;
+}
/// imm0_31_m1 - Matches and prints like imm0_31, but encodes as 'value - 1'.
def imm0_31_m1 : Operand<i32>, ImmLeaf<i32, [{
More information about the llvm-commits
mailing list