summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-11-30 22:57:21 +0000
committerBill Wendling <isanbard@gmail.com>2010-11-30 22:57:21 +0000
commita9e3df7aa0b61fdf6d9f046a1a5edd75b56b6d2d (patch)
tree9b6626180a1c70fdfebb29d11bd9c06f08270242 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parent8335e8fa63d770fb35cfe25c2ba1f3ca85c75f0d (diff)
downloadbcm5719-llvm-a9e3df7aa0b61fdf6d9f046a1a5edd75b56b6d2d.tar.gz
bcm5719-llvm-a9e3df7aa0b61fdf6d9f046a1a5edd75b56b6d2d.zip
* 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. llvm-svn: 120482
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 31742e36245..12d892a9fbe 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud