Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions src/mono/mono/mini/interp/simd-methods.def
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ SIMD_METHOD(Negate)
SIMD_METHOD(Max)
SIMD_METHOD(Min)
SIMD_METHOD(OnesComplement)
SIMD_METHOD(Round)
SIMD_METHOD(ShiftLeft)
SIMD_METHOD(ShiftRightArithmetic)
SIMD_METHOD(ShiftRightLogical)
Expand Down
6 changes: 6 additions & 0 deletions src/mono/mono/mini/interp/transform-simd.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ static guint16 packedsimd_alias_methods [] = {
SN_Multiply,
SN_Negate,
SN_OnesComplement,
SN_Round,
SN_ShiftLeft,
SN_ShiftRightArithmetic,
SN_ShiftRightLogical,
Expand Down Expand Up @@ -1167,6 +1168,11 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
case SN_LoadUnsafe:
cmethod_name = "LoadVector128";
break;
case SN_Round:
if (csignature->param_count != 1)
return FALSE;
cmethod_name = "RoundToNearest";
break;
case SN_WidenLower:
cmethod_name = is_unsigned ? "ZeroExtendWideningLower" : "SignExtendWideningLower";
break;
Expand Down
Loading