-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang-cl should provide implementations of more MSVC ARM64 intrinsics #65405
Comments
@EugeneZelenko I assume that the windows label removal was accidental (if not please re-remove and leave a note as to why the MSVC behaviours are not really windows-y). |
@compnerd: Isn't |
@EugeneZelenko yes, it is a windows thing, but can be used on other platforms. But that seems to indicate that it is supposed to be marked as windows (I was restoring the tag). |
Another intrinsic that would be helpful is __prefetch. |
Implement the _Count* and _Copy* Windows ARM intrinsics: ``` double _CopyDoubleFromInt64(__int64) float _CopyFloatFromInt32(__int32) __int32 _CopyInt32FromFloat(float) __int64 _CopyInt64FromDouble(double) unsigned int _CountLeadingOnes(unsigned long) unsigned int _CountLeadingOnes64(unsigned __int64) unsigned int _CountLeadingSigns(long) unsigned int _CountLeadingSigns64(__int64) unsigned int _CountLeadingZeros(unsigned long) unsigned int _CountLeadingZeros64(unsigned __int64) unsigned int _CountOneBits(unsigned long) unsigned int _CountOneBits64(unsigned __int64) ``` Full list of intrinsics here: [https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics](https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics) Bug: [65405](#65405)
Implement __prefetch intrinsic. MSVC docs: https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics?view=msvc-170 Bug: #65405
Some users have noticed that clang-cl does not provide some of the intrinsics listed in the MSVC ARM64 intrinsic list. In particular, the
_Count*
and_Copy*
intrinsics seem worth implementing, like_CopyFloatFromInt32
and_CountLeadingZeros
. See reference from the FP16 project here.cc @amykhuang @pzhengqc
The text was updated successfully, but these errors were encountered: