Skip to content

Commit

Permalink
JIT: Fix import of TrailingZeroCount on ARM64 (#81419)
Browse files Browse the repository at this point in the history
Fix #81366
  • Loading branch information
jakobbotsch authored Jan 31, 2023
1 parent f8ab555 commit 8b2a920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/importercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4769,7 +4769,8 @@ GenTree* Compiler::impPrimitiveNamedIntrinsic(NamedIntrinsic intrinsic,
op1 = gtNewScalarHWIntrinsicNode(baseType, op1, hwintrinsic);

hwintrinsic = varTypeIsLong(baseType) ? NI_ArmBase_Arm64_LeadingZeroCount : NI_ArmBase_LeadingZeroCount;
result = gtNewScalarHWIntrinsicNode(baseType, op1, hwintrinsic);
result = gtNewScalarHWIntrinsicNode(TYP_INT, op1, hwintrinsic);
baseType = TYP_INT;
}
#endif // TARGET_*
#endif // FEATURE_HW_INTRINSICS
Expand Down

0 comments on commit 8b2a920

Please sign in to comment.