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.B (SVE (SME
uint64_t svcntp_b8(svbool_t pg, svbool_t op)

128-bit SVE

Set (3) to popcount( (1) & (2) ).

256-bit SVE

Set (3) to popcount( (1) & (2) ).

512-bit SVE

Set (3) to popcount( (1) & (2) ).

Larger sizes

1024-bit SVE

Set (3) to popcount( (1) & (2) ).

2048-bit SVE

Set (3) to popcount( (1) & (2) ).

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