Calculate the number of VLDM/VSTM registers by subtracting the number of

fixed operands from the total number of operands (including the variadic ones).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson 2010-09-10 18:25:35 +00:00
parent 8ea298a4e3
commit 979927ab26

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