SVE Instruction List by Dougall Johnson
# CLZ: Count leading zero bits (predicated)

CLZ Zd.S, Pg/M, Zn.S (SVE (SME

svuint32_t svclz[_s32]_m(svuint32_t inactive, svbool_t pg, svint32_t op)

svuint32_t svclz[_u32]_m(svuint32_t inactive, svbool_t pg, svuint32_t op)

## 128-bit SVE

For each 32-bit integer set (2) to the number of leading zero bits in (1). If (1) is zero, the result is 32.

## 256-bit SVE

For each 32-bit integer set (2) to the number of leading zero bits in (1). If (1) is zero, the result is 32.

## 512-bit SVE

For each 32-bit integer set (2) to the number of leading zero bits in (1). If (1) is zero, the result is 32.

## Larger sizes

## 1024-bit SVE

For each 32-bit integer set (2) to the number of leading zero bits in (1). If (1) is zero, the result is 32.

## 2048-bit SVE

For each 32-bit integer set (2) to the number of leading zero bits in (1). If (1) is zero, the result is 32.

Report mistakes or give feedback

Inspired by and based on the x86/x64 SIMD Instruction List by Daytime.