Address mode immediate offset has already been divided by 4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-11-12 08:21:12 +00:00
parent 3f4924efff
commit 607f1b41a2

View File

@ -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;
}