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:
parent
0a3a595612
commit
200cdea934
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user