Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruihan-Yin committed Feb 5, 2025
1 parent 5148d9a commit d58b028
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/coreclr/jit/codegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7247,7 +7247,15 @@ void CodeGen::genFloatToFloatCast(GenTree* treeNode)
// floating-point conversions all have RMW semantics if VEX support is not available

bool isRMW = !compiler->canUseVexEncoding();
inst_RV_RV_TT(ins, emitTypeSize(dstType), targetReg, targetReg, op1, isRMW, INS_OPTS_NONE);
if (ins == INS_movss)
{
//Specially, movss does not have equivalent form of ins src1, src1, src2
inst_RV_TT(ins, emitTypeSize(dstType), targetReg, op1);
}
else
{
inst_RV_RV_TT(ins, emitTypeSize(dstType), targetReg, targetReg, op1, isRMW, INS_OPTS_NONE);
}
}

genProduceReg(treeNode);
Expand Down

0 comments on commit d58b028

Please sign in to comment.