-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Arm64: Add SVE feature detection for Windows #100937
Conversation
@dotnet/arm64-contrib |
@@ -458,6 +462,11 @@ int minipal_getcpufeatures(void) | |||
|
|||
// TODO: IsProcessorFeaturePresent doesn't support LRCPC2 yet. | |||
|
|||
if (IsProcessorFeaturePresent(PF_ARM_SVE_INSTRUCTIONS_AVAILABLE)) | |||
{ | |||
result |= ARM64IntrinsicConstants_Sve; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this give us parity between Linux/Windows at this point or are there others that are still missing on Windows that Linux currently handles?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARM64IntrinsicConstants_Rcpc2
and ARM64IntrinsicConstants_Rdm
are still missing and I didn't see their equivalent yet on windows side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see an entry of LRCPC2 in that. It just has LRCPC that is mapped to 45.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's not LRCPC2. Not a big deal though, it's just a minor optimization on top of RCPC1
* Add SVE feature detection for Windows * Move the PF_ARM_SVE_INSTRUCTIONS_AVAILABLE under HOST_WINDOWS
No description provided.