mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 15:33:16 +00:00
Fix thinko on store instructions. Fixes test_indvars failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00d4f48168
commit
45547b844d
@ -718,17 +718,17 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg,
|
||||
// mode, the floating point one only has two operands.
|
||||
if (isFloat)
|
||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||
TII.get(StrOpc), SrcReg)
|
||||
.addReg(DstReg).addImm(Offset));
|
||||
TII.get(StrOpc))
|
||||
.addReg(SrcReg).addReg(DstReg).addImm(Offset));
|
||||
else if (isThumb)
|
||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||
TII.get(StrOpc), SrcReg)
|
||||
.addReg(DstReg).addImm(Offset).addReg(0));
|
||||
TII.get(StrOpc))
|
||||
.addReg(SrcReg).addReg(DstReg).addImm(Offset).addReg(0));
|
||||
|
||||
else
|
||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
|
||||
TII.get(StrOpc), SrcReg)
|
||||
.addReg(DstReg).addReg(0).addImm(Offset));
|
||||
TII.get(StrOpc))
|
||||
.addReg(SrcReg).addReg(DstReg).addReg(0).addImm(Offset));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user