Add missing explicit writeback operand to tSTMIA_UPD.

rdar://10014745

llvm-svn: 138457
This commit is contained in:
Jim Grosbach 2011-08-24 18:19:42 +00:00
parent 420bf5446c
commit 9ae0de4db3
2 changed files with 5 additions and 4 deletions

View File

@ -726,9 +726,10 @@ def tLDMIA_UPD :
// There is no non-writeback version of STM for Thumb.
let mayStore = 1, hasExtraSrcRegAllocReq = 1 in
def tSTMIA_UPD : T1I<(outs),
(ins tGPR:$Rn, pred:$p, reglist:$regs, variable_ops),
IIC_iStore_mu, "stm${p}\t$Rn!, $regs", []>,
def tSTMIA_UPD : Thumb1I<(outs GPR:$wb),
(ins tGPR:$Rn, pred:$p, reglist:$regs, variable_ops),
AddrModeNone, 2, IIC_iStore_mu,
"stm${p}\t$Rn!, $regs", "$Rn = $wb", []>,
T1Encoding<{1,1,0,0,0,?}> {
bits<3> Rn;
bits<8> regs;

View File

@ -3152,7 +3152,7 @@ validateInstruction(MCInst &Inst,
}
case ARM::tSTMIA_UPD: {
bool listContainsBase;
if (checkLowRegisterList(Inst, 3, 0, 0, listContainsBase))
if (checkLowRegisterList(Inst, 4, 0, 0, listContainsBase))
return Error(Operands[4]->getStartLoc(),
"registers must be in range r0-r7");
break;