Skip to content

REVBIT

Operation

Reverses bit order within the selected operand width.

Assembler Syntax

REVBIT.{B|W|L|Q}(z) Rn(d)

Privilege

Unprivileged

Required CPUID flags

REVBIT

Repeat eligibility

REP eligible; REPcc observes dst

Reverses the order of all bits within the selected width. Source bit (i) becomes destination bit (n-1-i), where (n) is the selected width in bits.

2.75in

Encodings

REVBIT.{B|W|L|Q}(z) Rn(d)

Format: Instruction format for REVBIT.{B|W|L|Q}(z) Rn(d)

Format: Instruction format for REVBIT.{B|W|L|Q}(z) Rn(d)