mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
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:
parent
3f4924efff
commit
607f1b41a2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user