Skip to content

Commit

Permalink
Handle Vector.IsHardwareAccelerated in monointerpreter in src/mono/mo…
Browse files Browse the repository at this point in the history
…no/mini/interp/transform.c
  • Loading branch information
echesakov committed Oct 5, 2021
1 parent fc0f6c4 commit 4f6e74e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -2634,6 +2634,11 @@ 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_platform_not_supported_throw (td);
} else if (in_corlib &&
!strncmp ("System.Numerics", klass_name_space, 15) &&
!strcmp ("Vector", klass_name) &&
!strcmp (tm, "get_IsHardwareAccelerated")) {
*op = MINT_LDC_I4_0;
}

return FALSE;
Expand Down

0 comments on commit 4f6e74e

Please sign in to comment.