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 12134701ec
commit ba28161103
1 changed files with 5 additions and 1 deletions

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