Skip to content

Conversation

@kunalspathak
Copy link
Contributor

No description provided.

@kunalspathak
Copy link
Contributor Author

@dotnet/arm64-contrib

@kunalspathak kunalspathak changed the title Add SVE feature detection for Windows Arm64: Add SVE feature detection for Windows Apr 11, 2024

if (IsProcessorFeaturePresent(PF_ARM_SVE_INSTRUCTIONS_AVAILABLE))
{
result |= ARM64IntrinsicConstants_Sve;
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LRCPC2 is supported since Windows 11 22H2.

I don't see an entry of LRCPC2 in that. It just has LRCPC that is mapped to 45.

Copy link
Member

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

@kunalspathak kunalspathak merged commit 8a82c6c into dotnet:main Apr 12, 2024
@kunalspathak kunalspathak deleted the windows-sve branch April 12, 2024 17:55
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
* Add SVE feature detection for Windows

* Move the PF_ARM_SVE_INSTRUCTIONS_AVAILABLE under HOST_WINDOWS
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arm-sve Work related to arm64 SVE/SVE2 support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants