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
Prev Previous commit
Next Next commit
Check if element type is primitive on arm64
  • Loading branch information
fanyang-mono committed May 16, 2022
commit 91d196bb334861ed9e802a5bace8de41421901f9
8 changes: 6 additions & 2 deletions src/mono/mono/mini/mini-arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2525,8 +2525,12 @@ mono_arch_get_llvm_call_info (MonoCompile *cfg, MonoMethodSignature *sig)
if (t->type == MONO_TYPE_GENERICINST) {
MonoClass *klass = mono_class_from_mono_type_internal (t);
if (!strcmp (m_class_get_name (klass), "Vector128`1")) {
lainfo->storage = LLVMArgVtypeInSIMDReg;
break;
MonoType *element_type = mono_class_get_context (klass)->class_inst->type_argv [0];;
if (MONO_TYPE_IS_VECTOR_PRIMITIVE(element_type))
{
lainfo->storage = LLVMArgVtypeInSIMDReg;
break;
}
}
}

Expand Down