cntp

SVE Count Active Predicates

CNTP <Xn>, <Pg>, <Pn>.<T>

Counts the number of true elements in a predicate.

Details

The SVE Count Active Predicates instruction counts the number of true elements in a predicate.

Pseudocode Operation

// Counts the number of true elements in a predicate

Example

CNTP x1, p0/m, p1.T

Encoding

Binary Layout
00100101
00
100000
Pg
Pn
Rd
 
Format SVE Count
Opcode 0x25200000
Extension SVE

Operands

  • Xn
    Dest GPR
  • Pg
    Mask
  • Pn
    First source predicate register (SVE)