Skip to content

Commit 8f8dad0

Browse files
authored
[mono][interp] Add convert aliases (#114501)
* Add ConvertToInt32 packedsimd alias * Add ConvertToSingle alias
1 parent cb5b334 commit 8f8dad0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/mono/mono/mini/interp/simd-methods.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ SIMD_METHOD(BitwiseAnd)
4646
SIMD_METHOD(BitwiseOr)
4747
SIMD_METHOD(Ceiling)
4848
SIMD_METHOD(ConditionalSelect)
49+
SIMD_METHOD(ConvertToInt32)
50+
SIMD_METHOD(ConvertToSingle)
4951
SIMD_METHOD(Create)
5052
SIMD_METHOD(CreateScalar)
5153
SIMD_METHOD(CreateScalarUnsafe)

src/mono/mono/mini/interp/transform-simd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ static guint16 packedsimd_alias_methods [] = {
152152
SN_BitwiseAnd,
153153
SN_BitwiseOr,
154154
SN_Ceiling,
155+
SN_ConvertToInt32,
156+
SN_ConvertToSingle,
155157
SN_Divide,
156158
SN_Equals,
157159
SN_Floor,
@@ -1219,6 +1221,8 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
12191221
case SN_op_UnsignedRightShift:
12201222
cmethod_name = "ShiftRightLogical";
12211223
break;
1224+
case SN_ConvertToInt32:
1225+
cmethod_name = "ConvertToInt32Saturate";
12221226
case SN_ShiftLeft:
12231227
case SN_ShiftRightLogical:
12241228
case SN_ShiftRightArithmetic:
@@ -1230,6 +1234,7 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
12301234
case SN_AndNot:
12311235
case SN_Subtract:
12321236
case SN_Ceiling:
1237+
case SN_ConvertToSingle:
12331238
case SN_Floor:
12341239
case SN_Abs:
12351240
case SN_Negate:

0 commit comments

Comments
 (0)