Skip to content

[ARM64-SVE] Preserve precise scalar operand types in SVE intrinsics - #138574

Open
rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-135500
Open

rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-135500

Conversation

@rcj1

@rcj1 rcj1 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Preserve precise scalar operand types when importing SVE active-element count intrinsics. Use JitType2PreciseVarType to retain scalar signedness, and only resolve SIMD element types for vector operands. This prevents scalar operands from receiving TYP_UNDEF as their auxiliary type.

Adds the original issue repro as an SVE-gated regression test covering unsigned 32-bit and 64-bit scalar increment/decrement boundary cases.

Fixes #135500

Note

This description was generated with assistance from GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f2c7657b-25b9-4d47-8e4e-57d821586538
@rcj1 rcj1 self-assigned this Dec 1, 2026
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 1, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@adamperlin adamperlin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like a reasonable fix. I'm not sure if we can easily re-run CI right now to verify this. @rcj1 were you able to check the JITDUMP/disasm for the new regression test to see if the right instruction is being emitted? cc @dhartglassMSFT

@rcj1

rcj1 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

@adamperlin yes. I’m not wanting to merge before helix is up lol

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JIT: (bug) [ARM64 SVE] Unsigned scalar Sve.SaturatingDecrement/IncrementByActiveElementCount emit signed sqdecp/sqincp

2 participants