mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
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:
parent
8ea298a4e3
commit
979927ab26
@ -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…
x
Reference in New Issue
Block a user