forked from OSchip/llvm-project
Calculate the number of VLDM/VSTM registers by subtracting the number of
fixed operands from the total number of operands (including the variadic ones). llvm-svn: 113597
This commit is contained in:
parent
94de55d5c2
commit
ed19768cec
|
@ -458,10 +458,10 @@ static inline unsigned getLSMultipleTransferSize(MachineInstr *MI) {
|
|||
case ARM::t2STM:
|
||||
case ARM::VLDMS:
|
||||
case ARM::VSTMS:
|
||||
return (MI->getNumOperands() - 4) * 4;
|
||||
return (MI->getNumOperands() - MI->getDesc().getNumOperands() + 1) * 4;
|
||||
case ARM::VLDMD:
|
||||
case ARM::VSTMD:
|
||||
return (MI->getNumOperands() - 4) * 8;
|
||||
return (MI->getNumOperands() - MI->getDesc().getNumOperands() + 1) * 8;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue