Skip to content

Commit 0fd7ca0

Browse files
authored
Add PackedSimd aliases for AddSaturate and SubtractSaturate (#118089)
1 parent a166765 commit 0fd7ca0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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
@@ -23,6 +23,7 @@ SIMD_METHOD(op_UnaryNegation)
2323
SIMD_METHOD(op_UnsignedRightShift)
2424

2525
SIMD_METHOD(Abs)
26+
SIMD_METHOD(AddSaturate)
2627
SIMD_METHOD(AndNot)
2728
SIMD_METHOD(As)
2829
SIMD_METHOD(AsByte)
@@ -70,6 +71,7 @@ SIMD_METHOD(Max)
7071
SIMD_METHOD(Min)
7172
SIMD_METHOD(OnesComplement)
7273
SIMD_METHOD(Round)
74+
SIMD_METHOD(SubtractSaturate)
7375
SIMD_METHOD(ShiftLeft)
7476
SIMD_METHOD(ShiftRightArithmetic)
7577
SIMD_METHOD(ShiftRightLogical)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ static guint16 sri_packedsimd_methods [] = {
148148
static guint16 packedsimd_alias_methods [] = {
149149
SN_Abs,
150150
SN_Add,
151+
SN_AddSaturate,
151152
SN_AndNot,
152153
SN_BitwiseAnd,
153154
SN_BitwiseOr,
@@ -175,6 +176,7 @@ static guint16 packedsimd_alias_methods [] = {
175176
SN_Store,
176177
SN_StoreUnsafe,
177178
SN_Subtract,
179+
SN_SubtractSaturate,
178180
SN_Sqrt,
179181
SN_SquareRoot,
180182
SN_Truncate,
@@ -1256,8 +1258,10 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature
12561258
cmethod_name = "Store";
12571259
break;
12581260
case SN_Add:
1261+
case SN_AddSaturate:
12591262
case SN_AndNot:
12601263
case SN_Subtract:
1264+
case SN_SubtractSaturate:
12611265
case SN_Ceiling:
12621266
case SN_ConvertToSingle:
12631267
case SN_Floor:

0 commit comments

Comments
 (0)