Skip to content

Conversation

@kg
Copy link
Member

@kg kg commented Jan 8, 2026

We get a bunch of asserts here when doing superpmi replays, from TYP_REF ending up in here.

Copilot AI review requested due to automatic review settings January 8, 2026 01:34
@kg kg added arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Jan 8, 2026
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a 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 assertions in the Wasm RyuJIT compiler by adding missing type cases for TYP_REF and TYP_BYREF in the instruction selection functions. These reference and byref types were causing asserts during superpmi replays because they weren't explicitly handled in the WASM-specific switch statements.

Key changes:

  • Added TYP_REF and TYP_BYREF cases to ins_Load function for WASM target
  • Added TYP_REF and TYP_BYREF cases to ins_Store function for WASM target
  • Both cases fall through to TYP_INT, mapping to i32 instructions (appropriate for WASM32's 4-byte pointers)
  • Included TODO comments noting future 64-bit support requirements

@kg
Copy link
Member Author

kg commented Jan 8, 2026

cc @dotnet/jit-contrib

@kg
Copy link
Member Author

kg commented Jan 8, 2026

/ba-g known iOS lane flakes

@kg kg merged commit 768a134 into dotnet:main Jan 8, 2026
119 of 122 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants