cnt

Vector Population Count

CNT <Vd>.<T>, <Vn>.<T>

Counts set bits (population count) per byte.

Details

The Vector Population Count instruction counts set bits (population count) per byte.

Pseudocode Operation

// Counts set bits (population count) per byte

Example

CNT v0.4s.T, v1.4s.T

Encoding

Binary Layout
0
Q
001110
00
10000
01010
1
Rn
Rd
 
Format SIMD Two Register
Opcode 0x0E205800
Extension NEON (SIMD)

Operands

  • Vd
    Destination SIMD/FP vector register
  • Vn
    First source SIMD/FP vector register