Count trailing zeros (32 bit) : Set t1 to the number of 0 bits below the least significant 1 bit of the low 32 bits of t2, which is 32 when they are zero (64bit)
ctzw
Operands
reg, regVariants
- Count trailing zeros (32 bit) : Set t1 to the number of 0 bits below the least significant 1 bit of the low 32 bits of t2, which is 32 when they are zero (64bit) ctzw t1,t2
This example runs on RV64.
.text
li t0, 13
# t0=13; ctzw writes 0 to t2.
ctzw t2, t0