CTS
Operation
Counts trailing one bits in the selected-width source and writes the count.
Assembler Syntax
CTS.{B|W|L|Q}(z) <ea>(e), Rn(d)
CTS.{B|W|L|Q}(z) Rn(s), Rn(d)
Privilege
Unprivileged
Repeat eligibility
REP eligible; REPcc observes dst
Counts the trailing one bits within the selected operand size and writes the count to the destination register. A zero operand returns 0; an operand whose selected bits are all one returns the operand width in bits.
2.75in
Encodings
CTS.{B|W|L|Q}(z) <ea>(e), Rn(d)
Format: Instruction format for CTS.{B|W|L|Q}(z) <ea>(e), Rn(d)
2.75in CTS.{B|W|L|Q}(z) Rn(s), Rn(d)
Format: Instruction format for CTS.{B|W|L|Q}(z) Rn(s), Rn(d)