VCLZ.V
Vector Count Leading Zeros
VCLZ.V vd, vs2, vm
Counts the number of leading zero bits in each element.
Encoding
Binary Layout
010010
31:26
vm
25
vs2
24:20
01100010
19:12
vd
11:7
1010111
6:0
Operands
-
vd
Destination vector register -
vs2
Source vector register 2
Example
VCLZ.V v1, v4, v0.t
Related
More in Zvbb
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Counts the number of leading zero bits in each active vector element, writing counts to vd.
Operation
foreach(i < vl): vd[i] = count_leading_zeros(vs2[i]);