Skip to content

Commit d42d9fe

Browse files
[release/7.0-rc1] [Mono] Only enable Arm intrinsics for full aot mode (#74357)
* Only enable Arm intrinsics for full aot * Make sure AOT doesn't fall back to interpreter Co-authored-by: Fan Yang <yangfan@microsoft.com>
1 parent e69c9d0 commit d42d9fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/mono/mono/mini/simd-intrinsics.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,13 @@ emit_hardware_intrinsics (
718718
if (!info)
719719
goto support_probe_complete;
720720
id = info->id;
721+
722+
#ifdef TARGET_ARM64
723+
if (!(cfg->compile_aot && cfg->full_aot && !cfg->interp) && !intrin_group->jit_supported) {
724+
goto support_probe_complete;
725+
}
726+
#endif
727+
721728
// Hardware intrinsics are LLVM-only.
722729
if (!COMPILE_LLVM (cfg) && !intrin_group->jit_supported)
723730
goto support_probe_complete;
@@ -986,7 +993,7 @@ is_element_type_primitive (MonoType *vector_type)
986993

987994
static MonoInst*
988995
emit_sri_vector (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsig, MonoInst **args)
989-
{
996+
{
990997
if (!COMPILE_LLVM (cfg))
991998
return NULL;
992999

0 commit comments

Comments
 (0)