mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
Indexing off by one resulted in errant encoding of source register for
reg->reg moves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57011 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
016d34cc4c
commit
48b828fdb4
@ -416,7 +416,7 @@ unsigned ARMCodeEmitter::getAddrMode1InstrBinary(const MachineInstr &MI,
|
||||
const MachineOperand &MO = MI.getOperand(OpIdx);
|
||||
if (MO.isReg())
|
||||
// Encode register Rm.
|
||||
return Binary | getMachineOpValue(MI, NumDefs + 1);
|
||||
return Binary | getMachineOpValue(MI, NumDefs);
|
||||
|
||||
// Encode so_imm.
|
||||
// Set bit I(25) to identify this is the immediate form of <shifter_op>
|
||||
|
Loading…
Reference in New Issue
Block a user