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
Operands
-
Xn
Dest GPR -
Pg
Mask -
Pn
First source predicate register (SVE)