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
lowering store lcl var/field (before):
N001 (???,???) [000013] -----+----- t13 = LCL_VAR int V00 SP
N002 (???,???) [000000] -----+----- t0 = LCL_VAR byref V01 this
N003 (???,???) [000012] H----+----- t12 = CNS_INT(h) int 0x420068 ftn
N004 (???,???) [000014] -----+----- t14 = CNS_INT int 0
/--* t13 int wasm sp $0
+--* t0 byref this $1
+--* t12 int r2r cell $2
+--* t14 int wasm pep $3
N005 (???,???) [000001] --CXG+----- t1 = * CALL r2r_ind long System.Environment+ProcessCpuUsage:get_UserTime():System.TimeSpan:this
/--* t1 long
N006 (???,???) [000002] DACXG+----- * STORE_LCL_VAR struct<System.TimeSpan, 8> V03 loc1
Assertion failed 'call->HasMultiRegRetVal()' in 'System.Environment+ProcessCpuUsage:get_TotalTime():System.TimeSpan:this' during 'Lowering nodeinfo' (IL size 18; hash 0xf54dffa9; MinOpts)
Here layout->GetSlotCount() is returning 2 instead of 1 for Wasm and pushing us down the multi-reg return path, since it is dividing the return type size (8) by pointer size (4).
But the logic in LowerStoreLocCommon here is convoluted and needs further reviewing.
Activity
dotnet-policy-service commentedon Mar 5, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon Mar 5, 2026
Also an assert in
LowerStoreLocCommonHere
layout->GetSlotCount()is returning 2 instead of 1 for Wasm and pushing us down the multi-reg return path, since it is dividing the return type size (8) by pointer size (4).But the logic in
LowerStoreLocCommonhere is convoluted and needs further reviewing.To repro modify the above RSP to have
AndyAyersMS commentedon Mar 5, 2026
For
we hit
(very early before we have IR)
This is a 2-byte struct passed as a 4-byte int on Wasm. Here the value is 2 bytes, the segment offset 0, and segment size is 4.
Fix classifier embiggening small structs that are being passed-as a w…
[Wasm RyuJIT] Fix classifier embiggening small structs that are being…
[Wasm RyuJIT] Handle case where a TYP_STRUCT return has had its type …
[Wasm RyuJIT] Disable multireg ret assert on Wasm because we don't ha…
[Wasm RyuJIT] Disable multireg ret assert on Wasm because we don't ha…
dotnet-policy-service commentedon Mar 15, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
AndyAyersMS commentedon May 15, 2026
This was fixed by @kg's RS above.