Skip to content

Commit

Permalink
Enable intrinsification of System.Numerics types in corlib
Browse files Browse the repository at this point in the history
  • Loading branch information
DaZombieKiller committed Jul 29, 2024
1 parent 3e55b73 commit cf6aea0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mono/mini/simd-intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -2058,12 +2058,14 @@ mono_emit_simd_intrinsics (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSign
const char *class_name;
MonoInst *simd_inst = NULL;

if (is_sys_numerics_assembly (m_class_get_image (cmethod->klass)->assembly)) {
if (mono_is_corlib_image (m_class_get_image (cmethod->klass)) ||
is_sys_numerics_assembly (m_class_get_image (cmethod->klass)->assembly)) {
simd_inst = emit_sys_numerics_intrinsics (cfg, cmethod, fsig, args);
goto on_exit;
}

if (is_sys_numerics_vectors_assembly (m_class_get_image (cmethod->klass)->assembly)) {
if (mono_is_corlib_image (m_class_get_image (cmethod->klass)) ||
is_sys_numerics_vectors_assembly (m_class_get_image (cmethod->klass)->assembly)) {
simd_inst = emit_sys_numerics_vectors_intrinsics (cfg, cmethod, fsig, args);
goto on_exit;
}
Expand Down

0 comments on commit cf6aea0

Please sign in to comment.