May 2016
Intermediate to advanced
504 pages
12h 11m
English
These instructions can be used to count leading sign bits or zeros, or to count the number of bits that are set for each element in a vector:
vcls Count Leading Sign Bits
vclz Count Leading Zero Bits
vcnt Count Set Bits
• <op> is either cls, clz or cnt.
• The valid choices for <type> are given in the following table:
| Opcode | Valid Types |
| vcls | s8, s16, or s32 |
| vclz | u8, u16, or u32 |
| vcnt | i8 |
| Name | Effect | Description |
| vcls |
for 0 ≤ i < n) do end for | Count the number ... |
Read now
Unlock full access