Skip to content

Commit

Permalink
Fix asm diff
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakRajendrakumaran committed Dec 28, 2024
1 parent 623b619 commit cb134af
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/coreclr/jit/lsraxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1971,16 +1971,7 @@ int LinearScan::BuildModDiv(GenTree* tree)
tgtPrefUse = op1Use;
srcCount = 1;
}
// ToDo-APX : div currently can't access eGPR
if (tree->OperGet() == GT_UDIV || tree->OperGet() == GT_UMOD ||
(op2->isContainedIndir() && varTypeUsesFloatReg(op1)))
{
srcCount += BuildDelayFreeUses(op2, op1, BuildApxIncompatibleGPRMask(op2, true) & ~(SRBM_RAX | SRBM_RDX));
}
else
{
srcCount += BuildDelayFreeUses(op2, op1, availableIntRegs & ~(SRBM_RAX | SRBM_RDX));
}
srcCount += BuildDelayFreeUses(op2, op1, availableIntRegs & ~(SRBM_RAX | SRBM_RDX));

buildInternalRegisterUses();

Expand Down

0 comments on commit cb134af

Please sign in to comment.