Skip to content

Commit

Permalink
Fix tests (dotnet#65625)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkiFoD committed Jun 3, 2022
1 parent 0f74bdc commit d1b4594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4517,7 +4517,7 @@ GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
{
assert(varTypeIsFloating(callType));

if ((impStackTop().val->IsCnsFltOrDbl() || impStackTop(1).val->IsCnsFltOrDbl()))
if (sig->numArgs == 2 && (impStackTop().val->IsCnsFltOrDbl() || impStackTop(1).val->IsCnsFltOrDbl()))
{
GenTree* op2 = impPopStack().val;
GenTree* op1 = impPopStack().val;
Expand Down

0 comments on commit d1b4594

Please sign in to comment.