Skip to content

Commit 768a134

Browse files
authored
[Wasm RyuJIT] Add some missing types to ins_Load and ins_Store (#122994)
We get a bunch of asserts when doing superpmi replays, from TYP_REF ending up in here.
1 parent 42a8bdd commit 768a134

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/coreclr/jit/instr.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,9 @@ instruction CodeGenInterface::ins_Load(var_types srcType, bool aligned /*=false*
21012101
#if defined(TARGET_WASM)
21022102
switch (srcType)
21032103
{
2104+
case TYP_REF:
2105+
case TYP_BYREF:
2106+
return ins_Load(TYP_I_IMPL, aligned);
21042107
case TYP_INT:
21052108
return INS_i32_load;
21062109
case TYP_LONG:
@@ -2501,6 +2504,9 @@ instruction CodeGenInterface::ins_Store(var_types dstType, bool aligned /*=false
25012504
#if defined(TARGET_WASM)
25022505
switch (dstType)
25032506
{
2507+
case TYP_REF:
2508+
case TYP_BYREF:
2509+
return ins_Store(TYP_I_IMPL, aligned);
25042510
case TYP_INT:
25052511
return INS_i32_store;
25062512
case TYP_LONG:

0 commit comments

Comments
 (0)