From 45d030a05abad687f0fdbb95c5e94cc7e9aab6df Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 12 Nov 2008 08:21:12 +0000 Subject: [PATCH] Address mode immediate offset has already been divided by 4. llvm-svn: 59117 --- llvm/lib/Target/ARM/ARMCodeEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp index 2fdd9ce10b9d..c583ed12defe 100644 --- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp @@ -1195,8 +1195,7 @@ void ARMCodeEmitter::emitVFPLoadStoreInstruction(const MachineInstr &MI) { if (unsigned ImmOffs = ARM_AM::getAM5Offset(Offset.getImm())) { if (ARM_AM::getAM5Op(Offset.getImm()) == ARM_AM::add) Binary |= 1 << ARMII::U_BitShift; - // Immediate offset is multiplied by 4. - Binary |= ImmOffs >> 2; + Binary |= ImmOffs; emitWordLE(Binary); return; }