VCTS
Operation
Counts consecutive one bits from the low end of each active element.
Assembler Syntax
VCTS.{B|W|L|Q}(z) Pn(p), Vn(v)
VCTS.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)
VCTS.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)
Privilege
Unprivileged
Required CPUID flags
VECTOR
The register form replaces each active destination lane with the count of consecutive one bits at the low end of its old selected-width value. The memory-source form counts trailing one bits in each active memory element and writes the result to the corresponding destination lane. An inactive destination lane retains its previous value.
The memory-destination form counts trailing one bits in each active source-register lane and writes the result to the corresponding memory element. An inactive memory element remains unchanged. If every bit in an element is one, the result equals the element width in bits.
2.75in
Encodings
VCTS.{B|W|L|Q}(z) Pn(p), Vn(v)
Format: Instruction format for VCTS.{B|W|L|Q}(z) Pn(p), Vn(v)
2.75in VCTS.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)
Format: Instruction format for VCTS.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)
2.75in VCTS.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)
Format: Instruction format for VCTS.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)
dst — excluded: immediate [invalid_destination]