Skip to content

Add LSX overrides for [Rounding]ShiftRightAndDemoteTo#3160

Merged
copybara-service[bot] merged 1 commit into
google:masterfrom
eyupcanakman:feat/loongarch-shift-right-and-demote
Jul 6, 2026
Merged

Add LSX overrides for [Rounding]ShiftRightAndDemoteTo#3160
copybara-service[bot] merged 1 commit into
google:masterfrom
eyupcanakman:feat/loongarch-shift-right-and-demote

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

Implements the LSX override for ShiftRightAndDemoteTo and RoundingShiftRightAndDemoteTo, following #3056 for #2628. Narrowing reuses the fused vssrani/vssrlni (vssrarni/vssrlrni for the rounding variant) from the existing DemoteTo, passing the shift amount instead of 0; multi-step cases fall back to DemoteTo(d, [Rounding]ShiftRight<k>(v)).

LoongArch runs in CI, so the shift_test differential covers this on LSX; I also checked under qemu (gcc-14, -cpu max) and results match the generic path. SVE2/LASX and the Demote2To variants stay TODO.

@jan-wassenberg jan-wassenberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice 👍

@jan-wassenberg

Copy link
Copy Markdown
Member

CI failed, checking why..

@copybara-service
copybara-service Bot merged commit fa739e6 into google:master Jul 6, 2026
49 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants