Skip to content
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/Sve: Fix the SVE_ComputeAddress* #104039

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

kunalspathak
Copy link
Member

In #103778, we readjusted the ordering, but didn't encode that information in the instruction correctly.

https://github.com/dotnet/runtime/pull/103778/files#diff-3a0ae3f52b3651d14625d26a4ff55d5028a7116a6f8375a6ca13caa44ed8685f

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 26, 2024
@kunalspathak kunalspathak requested a review from TIHan June 26, 2024 14:32
@kunalspathak
Copy link
Member Author

@dotnet/arm64-contrib

@kunalspathak kunalspathak added the arm-sve Work related to arm64 SVE/SVE2 support label Jun 26, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

@a74nh a74nh left a comment

Choose a reason for hiding this comment

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

Nit: We could rearrange the ordering in hwinstrinsiclist so that NI_Sve_Compute8BitAddresses comes first.

Happy as it is.

@tannergooding
Copy link
Member

Nit: We could rearrange the ordering in hwinstrinsiclist so that NI_Sve_Compute8BitAddresses comes first.

We cannot, there is an expectation that the intrinsics are ordered alphabetically now so that resolution can be done via a binary search.

case NI_Sve_Compute32BitAddresses:
return 2;
case NI_Sve_Compute64BitAddresses:
return 4;
Copy link
Member

Choose a reason for hiding this comment

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

Is this meant to be 4? I thought you had it commented as 3 in the prior commit?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, that is a typo. Great catch.

@kunalspathak kunalspathak merged commit 3ed9deb into dotnet:main Jun 27, 2024
99 of 107 checks passed
@kunalspathak kunalspathak deleted the computeAddress-fix branch June 27, 2024 01:09
@github-actions github-actions bot locked and limited conversation to collaborators Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI arm-sve Work related to arm64 SVE/SVE2 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants