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: Add SignExtendWidening* and ZeroExtendWidening* math APIs #101743

Merged
merged 9 commits into from
May 1, 2024

Conversation

kunalspathak
Copy link
Member

@kunalspathak kunalspathak commented Apr 30, 2024

  • SignExtendWideningLower
  • SignExtendWideningUpper
  • ZeroExtendWideningLower
  • ZeroExtendWideningUpper

New tests added are passing: https://gist.github.com/kunalspathak/7d2dc1578786410a45d39f54754af4a1

Contributes to #99957

Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics
See info in area-owners.md if you want to be subscribed.

@kunalspathak
Copy link
Member Author

@dotnet/arm64-contrib

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

@TIHan TIHan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kunalspathak
Copy link
Member Author

/ba-g Failure is #101721

@kunalspathak kunalspathak merged commit d77b37b into dotnet:main May 1, 2024
163 of 168 checks passed
@@ -2185,7 +2185,7 @@ void emitter::emitInsSve_R_R(instruction ins,
case INS_sve_uunpkhi:
case INS_sve_uunpklo:
assert(insScalableOptsNone(sopt));
assert(insOptsScalableAtLeastHalf(opt));
Copy link
Contributor

Choose a reason for hiding this comment

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

Does doing this break the unit tests? I would hope there are some H,S,D tests that need switching to B,H,S

michaelgsharp pushed a commit to michaelgsharp/runtime that referenced this pull request May 9, 2024
…otnet#101743)

* Add SignExtendWidening* and ZeroExtendWidening* APIs

* Map API to instruction

* Add missing SignExtendWidening* APIs

* Add test cases

* fix bugs

* Forgot to push the template

* jit format

* Fix the LargeVectorSize
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
…otnet#101743)

* Add SignExtendWidening* and ZeroExtendWidening* APIs

* Map API to instruction

* Add missing SignExtendWidening* APIs

* Add test cases

* fix bugs

* Forgot to push the template

* jit format

* Fix the LargeVectorSize
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants