Repository navigation
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedarch-arm64area-System.Runtime.Intrinsicsarm-sveWork related to arm64 SVE/SVE2 support
Milestone
Description
namespace System.Runtime.Intrinsics.Arm;
/// VectorT Summary
public abstract partial class Sve2 : AdvSimd /// Feature: FEAT_SVE2 Category: mask
{
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanMask(int left, int right); // WHILEGT
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanMask(long left, long right); // WHILEGT
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanMask(uint left, uint right); // WHILEHI
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanMask(ulong left, ulong right); // WHILEHI
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanOrEqualMask(int left, int right); // WHILEGE
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanOrEqualMask(long left, long right); // WHILEGE
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanOrEqualMask(uint left, uint right); // WHILEHS
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileGreaterThanOrEqualMask(ulong left, ulong right); // WHILEHS
/// T: float, double, sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileReadAfterWriteMask(T* left, T* right); // WHILERW
/// T: float, double, sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateWhileWriteAfterReadMask(T* left, T* right); // WHILEWR
/// T: sbyte, short, byte, ushort
public static unsafe Vector<T> Match(Vector<T> mask, Vector<T> left, Vector<T> right); // MATCH
/// T: sbyte, short, byte, ushort
public static unsafe Vector<T> NoMatch(Vector<T> mask, Vector<T> left, Vector<T> right); // NMATCH
/// T: [sbyte, short], [short, int], [int, long], [byte, ushort], [ushort, uint], [uint, ulong]
public static unsafe Vector<T> SaturatingExtractNarrowingLower(Vector<T2> value); // SQXTNB or UQXTNB
/// T: [sbyte, short], [short, int], [int, long], [byte, ushort], [ushort, uint], [uint, ulong]
public static unsafe Vector<T> SaturatingExtractNarrowingUpper(Vector<T> even, Vector<T2> op); // SQXTNT or UQXTNT
/// T: [byte, short], [ushort, int], [uint, long]
public static unsafe Vector<T> SaturatingExtractUnsignedNarrowingLower(Vector<T2> value); // SQXTUNB
/// T: [byte, short], [ushort, int], [uint, long]
public static unsafe Vector<T> SaturatingExtractUnsignedNarrowingUpper(Vector<T> even, Vector<T2> op); // SQXTUNT
/// total method signatures: 16
}Match
Detect any matching elements, setting the condition flags
Compares each active 8-bit or 16-bit character left with all of the characters in the corresponding 128-bit segment of right. Where the first source element detects any matching characters in the second segment it places true in the corresponding element of the destination predicate, otherwise false. Inactive elements in the destination predicate register are set to zero.
NoMatch
The opposite of Match()
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedarch-arm64area-System.Runtime.Intrinsicsarm-sveWork related to arm64 SVE/SVE2 support
Activity
a74nh commentedon Oct 26, 2023
a74nh commentedon Oct 26, 2023
a74nh commentedon Oct 26, 2023
This contributes to #93095
It covers instructions in FEAT_SVE2 related to bitwise operations. They are similar to the SVE mask methods.
This list was auto generated from the C ACLE for SVE, and is in three parts:
The methods list reduced down to Vector versions. All possible varaints of T are given above the method.
The complete list of all methods. The corresponding ACLE methods and SVE instructions are given above the method.
All rejected ACLE methods. These are methods we have agreed that do not need including in C#.
Where possible, existing C# naming conventions have been matched.
Many of the C functions include predicate argument(s), of type svbool_t as the first argument. These are missing from the C# method. It is expected that the Jit will create predicates where required, or combine with uses of conditionalSelect(). For more discussion see #88140 comment.
[-] [API Proposal]: Arm64: FEAT_SVE2: masks[/-][+] [API Proposal]: Arm64: FEAT_SVE2: mask[/+]a74nh commentedon Aug 21, 2024
Updated to match implemented SVE1 methods.
a74nh commentedon Nov 28, 2025
This is the only SVE2 group not approved. It'd be useful to get them approved so we can get @ylpoonlg working on them.
[-] [API Proposal]: Arm64: FEAT_SVE2: mask[/-][+][API Proposal]: Arm64: FEAT_SVE2: mask[/+]bartonjs commentedon Jan 6, 2026
Video
SVE: Match, NoMatch (#125163)
Arm64 SVE2: CreateWhileGreaterThan* and CreateWhileReadAfterWrite* (#…
a74nh commentedon Jun 24, 2026
All the APIs are now implemented and match the reviewed version. Closing as complete.
Arm64 SVE2: CreateWhileGreaterThan* and CreateWhileReadAfterWrite* (#…