Skip to content

Commit

Permalink
Implement NI_SRCS_UNSAFE_SubtractByteOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed May 2, 2022
1 parent fff8ddc commit 7166b2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5158,7 +5158,12 @@ GenTree* Compiler::impSRCSUnsafeIntrinsic(NamedIntrinsic intrinsic,
// sub
// ret

return nullptr;
GenTree* op2 = impPopStack().val;
GenTree* op1 = impPopStack().val;
impBashVarAddrsToI(op1, op2);

var_types type = impGetByRefResultType(GT_SUB, /* uns */ false, &op1, &op2);
return gtNewOperNode(GT_SUB, type, op1, op2);
}

case NI_SRCS_UNSAFE_Unbox:
Expand Down

0 comments on commit 7166b2e

Please sign in to comment.