diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-11-30 22:57:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-11-30 22:57:21 +0000 |
commit | 1fd374e9c1c074c1681336bef31e65f0170b0f7e (patch) | |
tree | 30e1b258b3a0ab72be2c86ed18d6ceea2fe4d62f /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 80dd3e06129e2b570cbd65cba850571981df693a (diff) |
* Add support for encoding t_addrmode_s2 and t_addrmode_s1. They are the same as
t_addrmode_s4, but with a different scaling factor.
* Encode the Thumb1 load and store instructions. This involved a bit of
refactoring (hi, Chris! :-). Some of the patterns became dead afterwards and
were removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 31742e3624..12d892a9fb 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -323,7 +323,7 @@ public: if (Mem.Offset) { const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Mem.Offset); assert(CE && "Non-constant mode offset operand!"); - Inst.addOperand(MCOperand::CreateImm(CE->getValue() / 4)); + Inst.addOperand(MCOperand::CreateImm(CE->getValue())); Inst.addOperand(MCOperand::CreateReg(0)); } else { Inst.addOperand(MCOperand::CreateImm(0)); |