Skip to content

Commit

Permalink
[interp] Add handling for conv.i from r4 (#47991)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrzVlad committed Feb 8, 2021
1 parent 4ca10ac commit 7487d21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -5034,6 +5034,13 @@ generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header,
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I8_R8);
#else
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I4_R8);
#endif
break;
case STACK_TYPE_R4:
#if SIZEOF_VOID_P == 8
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I8_R4);
#else
interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_I, MINT_CONV_I4_R4);
#endif
break;
case STACK_TYPE_I4:
Expand Down

0 comments on commit 7487d21

Please sign in to comment.