Skip to content

Conversation

@SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Jan 16, 2026

I've decided to do a bespoke function for WASM, mainly due to the awkwardness of porting the register mask code that would be of questionable value. Instead, we place an allocation constraint on the RA.

With these changes, we are very close to getting a functional "add(x, y)". The only remaining part is the SP arg, being worked on in #123262.

This is not a fully sound implementation since we have a limit on the number of instructions in the prolog (and here we're generating a potentially unbounded number of instruction). I've put a point about this into #121865. It seems this single-IG restriction ought to be fixable...

@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 Jan 16, 2026
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jan 16, 2026
@SingleAccretion SingleAccretion changed the title [RyuJit/WASM] Establish the SP & FP [RyuJit/WASM] Establish the SP & FP and home register arguments Jan 16, 2026
@SingleAccretion SingleAccretion changed the title [RyuJit/WASM] Establish the SP & FP and home register arguments [RyuJit/WASM] Establish SP & FP and home register arguments Jan 16, 2026
@SingleAccretion SingleAccretion marked this pull request as ready for review January 17, 2026 11:26
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

@am11 am11 added the arch-wasm WebAssembly architecture label Jan 17, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@AndyAyersMS
Copy link
Member

SPMI failures look like infrastructure issues.

@AndyAyersMS AndyAyersMS merged commit 9e21162 into dotnet:main Jan 17, 2026
127 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants