vclzlsbb
Vector Count Leading Zero Least Significant Bits Byte
Counts the number of contiguous leading byte elements in VSR[VRB+32] having a zero least-significant bit.
Details
The instruction counts the number of contiguous leading byte elements in VSR[VRB+32] that have a zero least-significant bit and places the count into GPR[RT].
Pseudocode Operation
Programming Note
This instruction is useful for counting leading zero least significant bits in a vector register. Ensure that the Vector Facility (MSR.VEC) is enabled; otherwise, a Vector_Unavailable exception will be raised. The operation processes 16 bytes, and the result is stored in a general-purpose register. Be cautious of alignment requirements when accessing vector registers.
Example
Encoding
Operands
-
RA
Target GPR -
vB
Source -
RT
Target General Purpose Register -
VRB
Source Vector Register -
VRT
Target Vector Register -
VSRC
Source Vector Register