Skip to content

Commit 7487d21

Browse files
authored
[interp] Add handling for conv.i from r4 (#47991)
1 parent 4ca10ac commit 7487d21

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mono/mono/mini/interp/transform.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5034,6 +5034,13 @@ generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header,
50345034
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I8_R8);
50355035
#else
50365036
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I4_R8);
5037+
#endif
5038+
break;
5039+
case STACK_TYPE_R4:
5040+
#if SIZEOF_VOID_P == 8
5041+
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I8_R4);
5042+
#else
5043+
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I4_R4);
50375044
#endif
50385045
break;
50395046
case STACK_TYPE_I4:

0 commit comments

Comments
 (0)