SVE Instruction List by Dougall Johnson
CLS: Count leading sign bits (predicated)
CLS Zd.H, Pg/M, Zn.H (SVE (SME
svuint16_t svcls[_s16]_m(svuint16_t inactive, svbool_t pg, svint16_t op)
128-bit SVE
For each 16-bit integer set (2) to the number of leading bits that are equal to the sign bit in (1), excluding the sign bit itself. If (1) is zero or 0xFFFF, the result is 15.
256-bit SVE
For each 16-bit integer set (2) to the number of leading bits that are equal to the sign bit in (1), excluding the sign bit itself. If (1) is zero or 0xFFFF, the result is 15.
512-bit SVE
For each 16-bit integer set (2) to the number of leading bits that are equal to the sign bit in (1), excluding the sign bit itself. If (1) is zero or 0xFFFF, the result is 15.
Larger sizes
1024-bit SVE
For each 16-bit integer set (2) to the number of leading bits that are equal to the sign bit in (1), excluding the sign bit itself. If (1) is zero or 0xFFFF, the result is 15.
2048-bit SVE
For each 16-bit integer set (2) to the number of leading bits that are equal to the sign bit in (1), excluding the sign bit itself. If (1) is zero or 0xFFFF, the result is 15.
Report mistakes or give feedback
Inspired by and based on the x86/x64 SIMD Instruction List by Daytime.