[mono][interp] Fix conv.r.un from r4 (#65697)
authorVlad Brezae <brezaevlad@gmail.com>
Tue, 22 Feb 2022 14:43:53 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 14:43:53 +0000 (15:43 +0100)
src/mono/mono/mini/interp/transform.c

index f1f6286..6769635 100644 (file)
@@ -5905,6 +5905,9 @@ generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header,
                }
                case CEE_CONV_R_UN:
                        switch (td->sp [-1].type) {
+                       case STACK_TYPE_R4:
+                               interp_add_conv (td, td->sp - 1, NULL, STACK_TYPE_R8, MINT_CONV_R8_R4);
+                               break;
                        case STACK_TYPE_R8:
                                break;
                        case STACK_TYPE_I8: