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:
Bob Wilson 2010-09-10 18:25:35 +00:00
parent 94de55d5c2
commit ed19768cec
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}