diff --git a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs index 6c74700ae76fcc..e108db25883d7f 100644 --- a/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs +++ b/src/libraries/System.Runtime.Intrinsics/tests/Wasm/PackedSimdTests.cs @@ -1,6 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. + using System.Numerics; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Wasm; diff --git a/src/mono/mono/mini/interp/simd-methods.def b/src/mono/mono/mini/interp/simd-methods.def index f4d1ede74cd6c4..581c907419e2bc 100644 --- a/src/mono/mono/mini/interp/simd-methods.def +++ b/src/mono/mono/mini/interp/simd-methods.def @@ -74,6 +74,9 @@ SIMD_METHOD(ShiftLeft) SIMD_METHOD(ShiftRightArithmetic) SIMD_METHOD(ShiftRightLogical) SIMD_METHOD(Shuffle) +SIMD_METHOD(Store) +SIMD_METHOD(StoreUnsafe) +SIMD_METHOD(SquareRoot) SIMD_METHOD(Sqrt) SIMD_METHOD(Truncate) SIMD_METHOD(WidenLower) diff --git a/src/mono/mono/mini/interp/transform-simd.c b/src/mono/mono/mini/interp/transform-simd.c index ae003f4a997eeb..e9163bae47ab6a 100644 --- a/src/mono/mono/mini/interp/transform-simd.c +++ b/src/mono/mono/mini/interp/transform-simd.c @@ -173,8 +173,11 @@ static guint16 packedsimd_alias_methods [] = { SN_ShiftLeft, SN_ShiftRightArithmetic, SN_ShiftRightLogical, + SN_Store, + SN_StoreUnsafe, SN_Subtract, SN_Sqrt, + SN_SquareRoot, SN_Truncate, SN_WidenLower, SN_WidenUpper, @@ -1243,6 +1246,16 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature return FALSE; cmethod_name = cmethod->name; break; + case SN_Sqrt: + case SN_SquareRoot: + cmethod_name = "Sqrt"; + break; + case SN_Store: + case SN_StoreUnsafe: + if (csignature->param_count != 2) + return FALSE; + cmethod_name = "Store"; + break; case SN_Add: case SN_AndNot: case SN_Subtract: @@ -1253,7 +1266,6 @@ emit_sri_packedsimd (TransformData *td, MonoMethod *cmethod, MonoMethodSignature case SN_Negate: case SN_Min: case SN_Max: - case SN_Sqrt: case SN_Xor: case SN_Truncate: cmethod_name = cmethod->name;