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

CNTP (predicate as counter): Set scalar to count from predicate-as-counter

CNTP Xd, PNn.S, VLx4 (SVE2.1 (SME2+S

128-bit SVE

Decode (1) from its predicate-as-counter representation to a quadruple-length predicate, then set (2) to the number of non-zero bits corresponding to 32-bit elements.

256-bit SVE

Decode (1) from its predicate-as-counter representation to a quadruple-length predicate, then set (2) to the number of non-zero bits corresponding to 32-bit elements.

512-bit SVE

Decode (1) from its predicate-as-counter representation to a quadruple-length predicate, then set (2) to the number of non-zero bits corresponding to 32-bit elements.

Larger sizes

1024-bit SVE

Decode (1) from its predicate-as-counter representation to a quadruple-length predicate, then set (2) to the number of non-zero bits corresponding to 32-bit elements.

2048-bit SVE

Decode (1) from its predicate-as-counter representation to a quadruple-length predicate, then set (2) to the number of non-zero bits corresponding to 32-bit elements.

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