Skip to content

Commit

Permalink
Fix the BashToConst cal
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed May 30, 2024
1 parent 8f323d0 commit c399228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25120,7 +25120,7 @@ GenTree* Compiler::gtNewSimdShuffleNode(
{
assert(elementSize == 8);

op2->BashToConst(control, TYP_INT);
op2->BashToConst(static_cast<int>(control), TYP_INT);
retNode = gtNewSimdHWIntrinsicNode(type, op1, op2, NI_AVX2_Permute4x64, simdBaseJitType, simdSize);
}
}
Expand Down Expand Up @@ -25214,7 +25214,7 @@ GenTree* Compiler::gtNewSimdShuffleNode(
simdBaseType = TYP_DOUBLE;
}

op2->BashToConst(control, TYP_INT);
op2->BashToConst(static_cast<int>(control), TYP_INT);

if (varTypeIsIntegral(simdBaseType))
{
Expand Down

0 comments on commit c399228

Please sign in to comment.