cls
Count Leading Sign Bits
CLS <Wd>, <Wn>
Counts number of consecutive sign bits.
Details
The Count Leading Sign Bits instruction counts number of consecutive sign bits.
Pseudocode Operation
Wd ← count of leading sign bits in Wn
Example
CLS w0, w1
Encoding
Binary Layout
01011010
110
00000
001010
Rn
Rd
Operands
-
Wd
Destination 32-bit integer register -
Wn
First source / base 32-bit integer register