SVE Instruction List by Dougall Johnson
See "CNTP (predicate)" in the exploration tools

CNTP (predicate): Set scalar to count of true predicate elements

CNTP Xd, Pg, Pn.S (SVE (SME
uint64_t svcntp_b32(svbool_t pg, svbool_t op)

128-bit SVE

Considering only predicate bits corresponding to 32-bit elements, set (3) to popcount( (1) & (2) ).

256-bit SVE

Considering only predicate bits corresponding to 32-bit elements, set (3) to popcount( (1) & (2) ).

512-bit SVE

Considering only predicate bits corresponding to 32-bit elements, set (3) to popcount( (1) & (2) ).

Larger sizes

1024-bit SVE

Considering only predicate bits corresponding to 32-bit elements, set (3) to popcount( (1) & (2) ).

2048-bit SVE

Considering only predicate bits corresponding to 32-bit elements, set (3) to popcount( (1) & (2) ).

Report mistakes or give feedback
Inspired by and based on the x86/x64 SIMD Instruction List by Daytime.