From 9f620a688389fd5a999e2f023d1ab8b138f0a4c6 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 1 Aug 2011 22:02:20 +0000 Subject: [PATCH] Move imm0_255 to ARMInstrInfo.td with the other immediate predicates. llvm-svn: 136656 --- llvm/lib/Target/ARM/ARMInstrInfo.td | 6 ++++++ llvm/lib/Target/ARM/ARMInstrThumb.td | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index 0e75bffc1261..e4b2e614e7a6 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -513,6 +513,12 @@ def imm0_31 : Operand, ImmLeaf, ImmLeaf= 0 && Imm < 256; }]> { + let ParserMatchClass = Imm0_255AsmOperand; +} + // imm0_65535_expr - For movt/movw - 16-bit immediate that can also reference // a relocatable expression. // diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td index 19182db109b5..64e5e443dff0 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb.td +++ b/llvm/lib/Target/ARM/ARMInstrThumb.td @@ -30,10 +30,6 @@ def imm0_7_neg : PatLeaf<(i32 imm), [{ return (uint32_t)-N->getZExtValue() < 8; }], imm_neg_XFORM>; -def imm0_255_asmoperand : AsmOperandClass { let Name = "Imm0_255"; } -def imm0_255 : Operand, ImmLeaf= 0 && Imm < 256; }]> { - let ParserMatchClass = imm0_255_asmoperand; -} def imm0_255_comp : PatLeaf<(i32 imm), [{ return ~((uint32_t)N->getZExtValue()) < 256; }]>;