Count set bits : Set t1 to the number of 1 bits in t2, also known as the population count
cpop
Operands
reg, regVariants
- Count set bits : Set t1 to the number of 1 bits in t2, also known as the population count cpop t1,t2
.text
li t0, 13
# t0=13; cpop writes 3 to t2.
cpop t2, t0