1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Rely on instruction format to determine so_reg operand for now.

llvm-svn: 56181
This commit is contained in:
Evan Cheng 2008-09-13 01:38:29 +00:00
parent 0a3a595612
commit 200cdea934

View File

@ -372,7 +372,11 @@ unsigned ARMCodeEmitter::getAddrMode1InstrBinary(const MachineInstr &MI,
}
// Encode shifter operand.
if (TID.getNumOperands() - OpIdx > 1)
bool HasSoReg = (Format == ARMII::DPRdSoReg ||
Format == ARMII::DPRnSoReg ||
Format == ARMII::DPRSoReg ||
Format == ARMII::DPRSoRegS);
if (HasSoReg)
// Encode SoReg.
return Binary | getMachineSoRegOpValue(MI, TID, OpIdx);