commit | 89e2aa6afd408f1b4c6b47c53bbf31d48463bcab | [log] [tgz] |
---|---|---|
author | Jim Grosbach <grosbach@apple.com> | Tue Aug 16 23:57:34 2011 +0000 |
committer | Jim Grosbach <grosbach@apple.com> | Tue Aug 16 23:57:34 2011 +0000 |
tree | d822148e220f6254aeea879940c3c1fe09eaa21d | |
parent | 16280308ac6f20d9da06eafcc19e4a6777f49750 [diff] [blame] |
Thumb ADD(immediate) parsing support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137788 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 3db8a7d..0313ef4 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -3013,6 +3013,11 @@ Inst = TmpInst; } break; + case ARM::tADDi8: + // If the immediate is in the range 0-7, we really wanted tADDi3. + if (Inst.getOperand(3).getImm() < 8) + Inst.setOpcode(ARM::tADDi3); + break; } }