Skip to content

Commit

Permalink
[mono] Intrinsify IsHardwareAccelerated in the interpreter.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Sep 14, 2022
1 parent bc183b8 commit 8be6b8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -2470,6 +2470,16 @@ interp_handle_intrinsics (TransformData *td, MonoMethod *target_method, MonoClas
(!strncmp ("System.Runtime.Intrinsics.Arm", klass_name_space, 29) ||
!strncmp ("System.Runtime.Intrinsics.X86", klass_name_space, 29))) {
interp_generate_void_throw (td, MONO_JIT_ICALL_mono_throw_platform_not_supported);
} else if (in_corlib &&
(!strncmp ("System.Numerics", klass_name_space, 15) &&
!strcmp ("Vector", klass_name) &&
!strcmp (tm, "get_IsHardwareAccelerated"))) {
*op = MINT_LDC_I4_0;
} else if (in_corlib &&
(!strncmp ("System.Runtime.Intrinsics", klass_name_space, 25) &&
!strncmp ("Vector", klass_name, 6) &&
!strcmp (tm, "get_IsHardwareAccelerated"))) {
*op = MINT_LDC_I4_0;
}

return FALSE;
Expand Down

0 comments on commit 8be6b8d

Please sign in to comment.