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