diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-08-01 22:02:20 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-08-01 22:02:20 +0000 |
commit | 02c8460a7428b9721d8784bc320f045d022ce699 (patch) | |
tree | 79dd79290dcf239fb2831a5d4dcf3ff3ad70b49d /lib | |
parent | b2756afa273b548d950b612f4e936b46e82c1f13 (diff) | |
download | external_llvm-02c8460a7428b9721d8784bc320f045d022ce699.zip external_llvm-02c8460a7428b9721d8784bc320f045d022ce699.tar.gz external_llvm-02c8460a7428b9721d8784bc320f045d022ce699.tar.bz2 |
Move imm0_255 to ARMInstrInfo.td with the other immediate predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 6 | ||||
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb.td | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 0e75bff..e4b2e61 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -513,6 +513,12 @@ def imm0_31 : Operand<i32>, ImmLeaf<i32, [{ let ParserMatchClass = Imm0_31AsmOperand; } +/// imm0_255 predicate - Immediate in the range [0,255]. +def Imm0_255AsmOperand : AsmOperandClass { let Name = "Imm0_255"; } +def imm0_255 : Operand<i32>, ImmLeaf<i32, [{ return Imm >= 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/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 19182db..64e5e44 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/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<i32>, ImmLeaf<i32, [{ return Imm >= 0 && Imm < 256; }]> { - let ParserMatchClass = imm0_255_asmoperand; -} def imm0_255_comp : PatLeaf<(i32 imm), [{ return ~((uint32_t)N->getZExtValue()) < 256; }]>; |