Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11255 from mskvortsov/FixPutArgReg
Browse files Browse the repository at this point in the history
[RyuJIT/ARM32] Update putarg_reg codegen
  • Loading branch information
BruceForstall committed Apr 27, 2017
2 parents beda361 + 5b7163c commit 368ee30
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/jit/codegenarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,18 +900,18 @@ void CodeGen::genCodeForTreeNode(GenTreePtr treeNode)
break;

case GT_PUTARG_REG:
{
NYI_IF(targetType == TYP_STRUCT, "GT_PUTARG_REG: struct support not implemented");

// commas show up here commonly, as part of a nullchk operation
GenTree* op1 = treeNode->gtOp.gtOp1->gtEffectiveVal();
// If child node is not already in the register we need, move it
genConsumeReg(op1);
if (treeNode->gtRegNum != op1->gtRegNum)
assert(targetType != TYP_STRUCT); // Any TYP_STRUCT register args should have been removed by
// fgMorphMultiregStructArg
// We have a normal non-Struct targetType
{
inst_RV_RV(ins_Move_Extend(targetType, true), treeNode->gtRegNum, op1->gtRegNum, targetType);
GenTree* op1 = treeNode->gtOp.gtOp1;
// If child node is not already in the register we need, move it
genConsumeReg(op1);
if (targetReg != op1->gtRegNum)
{
inst_RV_RV(ins_Copy(targetType), targetReg, op1->gtRegNum, targetType);
}
}
}
genProduceReg(treeNode);
break;

Expand Down

0 comments on commit 368ee30

Please sign in to comment.