Skip to content

Commit 89d6fd5

Browse files
authored
[wasm] Update PackedSimd API (#88595)
Implements #88092
1 parent 815ab77 commit 89d6fd5

File tree

11 files changed

+164
-158
lines changed

11 files changed

+164
-158
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Wasm/PackedSimd.PlatformNotSupported.cs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ public abstract class PackedSimd
2626
public static Vector128<nint> Splat(nint value) { throw new PlatformNotSupportedException(); }
2727
public static Vector128<nuint> Splat(nuint value) { throw new PlatformNotSupportedException(); }
2828

29-
public static int ExtractLane(Vector128<sbyte> value, [ConstantExpected(Max = (byte)(15))] byte index) { throw new PlatformNotSupportedException(); }
30-
public static uint ExtractLane(Vector128<byte> value, [ConstantExpected(Max = (byte)(15))] byte index) { throw new PlatformNotSupportedException(); }
31-
public static int ExtractLane(Vector128<short> value, [ConstantExpected(Max = (byte)(7))] byte index) { throw new PlatformNotSupportedException(); }
32-
public static uint ExtractLane(Vector128<ushort> value, [ConstantExpected(Max = (byte)(7))] byte index) { throw new PlatformNotSupportedException(); }
33-
public static int ExtractLane(Vector128<int> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
34-
public static uint ExtractLane(Vector128<uint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
35-
public static long ExtractLane(Vector128<long> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
36-
public static ulong ExtractLane(Vector128<ulong> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
37-
public static float ExtractLane(Vector128<float> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
38-
public static double ExtractLane(Vector128<double> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
39-
public static nint ExtractLane(Vector128<nint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
40-
public static nuint ExtractLane(Vector128<nuint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
41-
42-
public static Vector128<sbyte> ReplaceLane(Vector128<sbyte> vector, [ConstantExpected(Max = (byte)(15))] byte imm, int value) { throw new PlatformNotSupportedException(); }
43-
public static Vector128<byte> ReplaceLane(Vector128<byte> vector, [ConstantExpected(Max = (byte)(15))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
44-
public static Vector128<short> ReplaceLane(Vector128<short> vector, [ConstantExpected(Max = (byte)(7))] byte imm, int value) { throw new PlatformNotSupportedException(); }
45-
public static Vector128<ushort> ReplaceLane(Vector128<ushort> vector, [ConstantExpected(Max = (byte)(7))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
46-
public static Vector128<int> ReplaceLane(Vector128<int> vector, [ConstantExpected(Max = (byte)(3))] byte imm, int value) { throw new PlatformNotSupportedException(); }
47-
public static Vector128<int> ReplaceLane(Vector128<uint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
48-
public static Vector128<long> ReplaceLane(Vector128<long> vector, [ConstantExpected(Max = (byte)(1))] byte imm, long value) { throw new PlatformNotSupportedException(); }
49-
public static Vector128<ulong> ReplaceLane(Vector128<ulong> vector, [ConstantExpected(Max = (byte)(1))] byte imm, ulong value) { throw new PlatformNotSupportedException(); }
50-
public static Vector128<float> ReplaceLane(Vector128<float> vector, [ConstantExpected(Max = (byte)(3))] byte imm, float value) { throw new PlatformNotSupportedException(); }
51-
public static Vector128<double> ReplaceLane(Vector128<double> vector, [ConstantExpected(Max = (byte)(1))] byte imm, double value) { throw new PlatformNotSupportedException(); }
52-
public static Vector128<nint> ReplaceLane(Vector128<nint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nint value) { throw new PlatformNotSupportedException(); }
53-
public static Vector128<nuint> ReplaceLane(Vector128<nuint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nuint value) { throw new PlatformNotSupportedException(); }
29+
public static int ExtractScalar(Vector128<sbyte> value, [ConstantExpected(Max = (byte)(15))] byte index) { throw new PlatformNotSupportedException(); }
30+
public static uint ExtractScalar(Vector128<byte> value, [ConstantExpected(Max = (byte)(15))] byte index) { throw new PlatformNotSupportedException(); }
31+
public static int ExtractScalar(Vector128<short> value, [ConstantExpected(Max = (byte)(7))] byte index) { throw new PlatformNotSupportedException(); }
32+
public static uint ExtractScalar(Vector128<ushort> value, [ConstantExpected(Max = (byte)(7))] byte index) { throw new PlatformNotSupportedException(); }
33+
public static int ExtractScalar(Vector128<int> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
34+
public static uint ExtractScalar(Vector128<uint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
35+
public static long ExtractScalar(Vector128<long> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
36+
public static ulong ExtractScalar(Vector128<ulong> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
37+
public static float ExtractScalar(Vector128<float> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
38+
public static double ExtractScalar(Vector128<double> value, [ConstantExpected(Max = (byte)(1))] byte index) { throw new PlatformNotSupportedException(); }
39+
public static nint ExtractScalar(Vector128<nint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
40+
public static nuint ExtractScalar(Vector128<nuint> value, [ConstantExpected(Max = (byte)(3))] byte index) { throw new PlatformNotSupportedException(); }
41+
42+
public static Vector128<sbyte> ReplaceScalar(Vector128<sbyte> vector, [ConstantExpected(Max = (byte)(15))] byte imm, int value) { throw new PlatformNotSupportedException(); }
43+
public static Vector128<byte> ReplaceScalar(Vector128<byte> vector, [ConstantExpected(Max = (byte)(15))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
44+
public static Vector128<short> ReplaceScalar(Vector128<short> vector, [ConstantExpected(Max = (byte)(7))] byte imm, int value) { throw new PlatformNotSupportedException(); }
45+
public static Vector128<ushort> ReplaceScalar(Vector128<ushort> vector, [ConstantExpected(Max = (byte)(7))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
46+
public static Vector128<int> ReplaceScalar(Vector128<int> vector, [ConstantExpected(Max = (byte)(3))] byte imm, int value) { throw new PlatformNotSupportedException(); }
47+
public static Vector128<int> ReplaceScalar(Vector128<uint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, uint value) { throw new PlatformNotSupportedException(); }
48+
public static Vector128<long> ReplaceScalar(Vector128<long> vector, [ConstantExpected(Max = (byte)(1))] byte imm, long value) { throw new PlatformNotSupportedException(); }
49+
public static Vector128<ulong> ReplaceScalar(Vector128<ulong> vector, [ConstantExpected(Max = (byte)(1))] byte imm, ulong value) { throw new PlatformNotSupportedException(); }
50+
public static Vector128<float> ReplaceScalar(Vector128<float> vector, [ConstantExpected(Max = (byte)(3))] byte imm, float value) { throw new PlatformNotSupportedException(); }
51+
public static Vector128<double> ReplaceScalar(Vector128<double> vector, [ConstantExpected(Max = (byte)(1))] byte imm, double value) { throw new PlatformNotSupportedException(); }
52+
public static Vector128<nint> ReplaceScalar(Vector128<nint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nint value) { throw new PlatformNotSupportedException(); }
53+
public static Vector128<nuint> ReplaceScalar(Vector128<nuint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nuint value) { throw new PlatformNotSupportedException(); }
5454

5555
public static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) { throw new PlatformNotSupportedException(); }
5656
public static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) { throw new PlatformNotSupportedException(); }
@@ -539,16 +539,16 @@ public abstract class PackedSimd
539539
public static Vector128<double> ConvertToDoubleLower(Vector128<float> value) { throw new PlatformNotSupportedException(); }
540540

541541
public static Vector128<int> ConvertToInt32Saturate(Vector128<float> value) { throw new PlatformNotSupportedException(); }
542-
internal static Vector128<uint> ConvertToUnsignedInt32Saturate(Vector128<float> value) { throw new PlatformNotSupportedException(); }
542+
public static Vector128<uint> ConvertToUInt32Saturate(Vector128<float> value) { throw new PlatformNotSupportedException(); }
543543

544544
public static Vector128<int> ConvertToInt32Saturate(Vector128<double> value) { throw new PlatformNotSupportedException(); }
545-
internal static Vector128<uint> ConvertToUnsignedInt32Saturate(Vector128<double> value) { throw new PlatformNotSupportedException(); }
545+
public static Vector128<uint> ConvertToUInt32Saturate(Vector128<double> value) { throw new PlatformNotSupportedException(); }
546546

547-
internal static Vector128<sbyte> ConvertNarrowingSignedSaturate(Vector128<short> lower, Vector128<short> upper) { throw new PlatformNotSupportedException(); }
548-
internal static Vector128<short> ConvertNarrowingSignedSaturate(Vector128<int> lower, Vector128<int> upper) { throw new PlatformNotSupportedException(); }
547+
public static Vector128<sbyte> ConvertNarrowingSaturateSigned(Vector128<short> lower, Vector128<short> upper) { throw new PlatformNotSupportedException(); }
548+
public static Vector128<short> ConvertNarrowingSaturateSigned(Vector128<int> lower, Vector128<int> upper) { throw new PlatformNotSupportedException(); }
549549

550-
internal static Vector128<byte> ConvertNarrowingUnsignedSaturate(Vector128<short> lower, Vector128<short> upper) { throw new PlatformNotSupportedException(); }
551-
internal static Vector128<ushort> ConvertNarrowingUnsignedSaturate(Vector128<int> lower, Vector128<int> upper) { throw new PlatformNotSupportedException(); }
550+
public static Vector128<byte> ConvertNarrowingSaturateUnsigned(Vector128<short> lower, Vector128<short> upper) { throw new PlatformNotSupportedException(); }
551+
public static Vector128<ushort> ConvertNarrowingSaturateUnsigned(Vector128<int> lower, Vector128<int> upper) { throw new PlatformNotSupportedException(); }
552552

553553
public static Vector128<short> SignExtendWideningLower(Vector128<sbyte> value) { throw new PlatformNotSupportedException(); }
554554
public static Vector128<ushort> SignExtendWideningLower(Vector128<byte> value) { throw new PlatformNotSupportedException(); }

0 commit comments

Comments
 (0)