Skip to content

Commit 7ce4662

Browse files
Fix issue for getting incorrect register type for op2
1 parent 4943c53 commit 7ce4662

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/coreclr/jit/lsraarm64.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,14 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree, int* pDstCou
16821682
{
16831683
assert(!isRMW);
16841684

1685-
srcCount += BuildOperandUses(intrin.op2, RBM_ASIMD_INDEXED_H_ELEMENT_ALLOWED_REGS.GetFloatRegSet());
1685+
if (intrin.id == NI_Sve_DuplicateSelectedScalarToVector)
1686+
{
1687+
srcCount += BuildOperandUses(intrin.op2);
1688+
}
1689+
else
1690+
{
1691+
srcCount += BuildOperandUses(intrin.op2, RBM_ASIMD_INDEXED_H_ELEMENT_ALLOWED_REGS.GetFloatRegSet());
1692+
}
16861693

16871694
if (intrin.op3 != nullptr)
16881695
{

0 commit comments

Comments
 (0)