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

Commit

Permalink
Fix linux/x64 SIMD returns
Browse files Browse the repository at this point in the history
  • Loading branch information
CarolEidt committed Apr 9, 2019
1 parent f95753a commit 82c3f66
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/jit/lsrabuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,16 @@ int LinearScan::BuildReturn(GenTree* tree)
regMaskTP useCandidates = RBM_NONE;

#if FEATURE_MULTIREG_RET
if (tree->TypeGet() == TYP_STRUCT)
#ifdef _TARGET_ARM64_
if (varTypeIsSIMD(tree))
{
useCandidates = allSIMDRegs();
BuildUse(op1, useCandidates);
return 1;
}
#endif // !_TARGET_ARM64_

if (varTypeIsStruct(tree))
{
// op1 has to be either an lclvar or a multi-reg returning call
if (op1->OperGet() == GT_LCL_VAR)
Expand All @@ -3083,16 +3092,6 @@ int LinearScan::BuildReturn(GenTree* tree)
return srcCount;
}
}
else if (varTypeIsSIMD(tree))
{
#ifdef _TARGET_ARM64_
useCandidates = allSIMDRegs();
BuildUse(op1, useCandidates);
return 1;
#else // !_TARGET_ARM64_
assert(!"Unexpected SIMD return type");
#endif // !_TARGET_ARM64_
}
else
#endif // FEATURE_MULTIREG_RET
{
Expand Down

0 comments on commit 82c3f66

Please sign in to comment.