You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT asserts genIsValidIntReg in scope-info for wasm R2R in MinOpts #129630
arch-wasmWebAssembly architecturearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-browserBrowser variant of arch-wasm
crossgen2 targeting wasm R2R (--targetarch:wasm --targetos:browser --obj-format:wasm) asserts in the checked JIT when compiling in MinOpts (i.e. without -O):
Assert failure(PID …): src\coreclr\jit\scopeinfo.cpp:161
Assertion failed 'genIsValidIntReg(reg)' during 'Generate code'
Root cause
CodeGenInterface::siVarLoc::storeVariableInRegisters (scopeinfo.cpp) asserts genIsValidIntReg(reg), but an enregistered local / return value is homed in a wasm virtual register (e.g. 0x20000001), which is not a valid integer register.
The wasm register is visible in R2RDump's variable-location output for the produced image:
Loc Type: VLT_REG
Register: NYI '536870913' # 0x20000001
...
Base Register: NYI '2'
Reached via the siVarLoc(const LclVarDsc*, …) constructor lvIsInReg() → siFillRegisterVarLoc path. The two storeVariableInRegisters call sites are the return-value location (codegencommon.cpp ~L1840) and scope tracking (scopeinfo.cpp ~L1756).
arch-wasmWebAssembly architecturearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-browserBrowser variant of arch-wasm
Activity
dotnet-policy-service commentedon Jun 19, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Jun 19, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Jun 19, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
Disable scope info for wasm targets
Disable scope info for wasm targets (#129636)
Disable scope info for wasm targets (#129636)
Disable scope info for wasm targets (dotnet#129636)