Count trailing zeros : Set t1 to the number of 0 bits below the least significant 1 bit of t2, which is the full register width when t2 is zero
ctz
Operands
reg, regVariants
- Count trailing zeros : Set t1 to the number of 0 bits below the least significant 1 bit of t2, which is the full register width when t2 is zero ctz t1,t2
.text
li t0, 13
# t0=13; ctz writes 0 to t2.
ctz t2, t0