Skip to content

Commit

Permalink
[release/7.0-rc1] [Mono] Only enable Arm intrinsics for full aot mode (
Browse files Browse the repository at this point in the history
…#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>
  • Loading branch information
github-actions[bot] and fanyang-mono authored Aug 22, 2022
1 parent e69c9d0 commit d42d9fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mono/mono/mini/simd-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ emit_hardware_intrinsics (
if (!info)
goto support_probe_complete;
id = info->id;

#ifdef TARGET_ARM64
if (!(cfg->compile_aot && cfg->full_aot && !cfg->interp) && !intrin_group->jit_supported) {
goto support_probe_complete;
}
#endif

// Hardware intrinsics are LLVM-only.
if (!COMPILE_LLVM (cfg) && !intrin_group->jit_supported)
goto support_probe_complete;
Expand Down Expand Up @@ -986,7 +993,7 @@ is_element_type_primitive (MonoType *vector_type)

static MonoInst*
emit_sri_vector (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsig, MonoInst **args)
{
{
if (!COMPILE_LLVM (cfg))
return NULL;

Expand Down

0 comments on commit d42d9fe

Please sign in to comment.