-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix SVE long narrowing for shifts #123666
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR fixes an issue with SVE (Scalable Vector Extension) long narrowing operations for shift instructions by renaming and correcting the behavior of a SIMD narrowing function.
Changes:
- Renamed
NarrowSimdLongtoNarrowAndDuplicateSimdLongto accurately reflect its behavior of narrowing and duplicating elements - Fixed the element count calculation to use
sizeof(TBase)instead ofsizeof(uint64_t), which corrects the narrowing operation for shifts - Updated all call sites to use the renamed function
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/coreclr/jit/simd.h | Renamed function and fixed count calculation; added comprehensive XML documentation |
| src/coreclr/jit/valuenum.cpp | Updated function call to use renamed function |
| src/coreclr/jit/gentree.cpp | Updated function call to use renamed function |
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib |
|
@dotnet/arm64-contrib |
|
SPMI issues look unrelated to this PR. |
Fixes #123496