Skip to content

PARITY

Operation

Computes operand parity and writes the predicate to an Rn register.

Assembler Syntax

PARITY.{B|W|L|Q}(z) <ea>(e), Rn(d)

PARITY.{B|W|L|Q}(z) Rn(s), Rn(d)

Privilege

Unprivileged

Repeat eligibility

REP eligible; REPcc observes dst

Computes the parity of the selected operand size and writes popcount(src) & 1 to the destination register. The written value is 1 for odd parity and 0 for even parity. FLAGS are unchanged.

2.75in

Encodings

PARITY.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for PARITY.{B|W|L|Q}(z) <ea>(e), Rn(d)

Format: Instruction format for PARITY.{B|W|L|Q}(z) <ea>(e), Rn(d)

2.75in PARITY.{B|W|L|Q}(z) Rn(s), Rn(d)

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

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