Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Only enable Arm intrinsics for full aot
  • Loading branch information
fanyang-mono authored and github-actions committed Aug 22, 2022
commit d7f5b6b7da3b671aa7a4f4e3dd0300e76a8a9bbd
10 changes: 9 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,14 @@ emit_hardware_intrinsics (
if (!info)
goto support_probe_complete;
id = info->id;

#ifdef TARGET_ARM64
if (!(cfg->compile_aot && cfg->full_aot)) {
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 +994,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