Address mode immediate offset has already been divided by 4.

llvm-svn: 59117
This commit is contained in:
Evan Cheng 2008-11-12 08:21:12 +00:00
parent 052f20d3b1
commit 45d030a05a
1 changed files with 1 additions and 2 deletions

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