vclzdm
Vector Count Leading Zeros Doubleword under bit Mask
Counts the number of leading zeros in each doubleword element of a vector, considering a mask.
Details
For each of the two doubleword elements in VRA, this instruction counts the number of leading zeros among only those bit positions selected by the corresponding mask bits in VRB (where a mask bit of 1 indicates the bit is considered). The result for each doubleword is placed into the corresponding doubleword element of VRT. Bit positions not selected by the mask are ignored in the count.
Programming Note
Use vclzdm to efficiently count leading zeros in masked bit positions within doublewords. Ensure that VRB contains a valid mask where 1s indicate bits to be considered for zero counting. This instruction operates at user privilege level and does not generate exceptions under normal conditions.
Example
Encoding
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register