Fix the handling of fail tramps in the full-aot IMT thunks on x86. Fixes #6112.
[mono.git] / mono / mini / aot-runtime.c
index e046124203d2727ab4276e088db60aa28420f119..213f559bcc90eae469e96866c45983b04b062633 100644 (file)
@@ -1365,7 +1365,7 @@ check_usable (MonoAssembly *assembly, MonoAotFileInfo *info, char **out_msg)
                usable = FALSE;
        }
 
-       if (info->simd_opts & ~mono_arch_cpu_enumerate_simd_versions ()) {
+       if (!mono_aot_only && (info->simd_opts & ~mono_arch_cpu_enumerate_simd_versions ())) {
                msg = g_strdup_printf ("compiled with unsupported SIMD extensions");
                usable = FALSE;
        }