XOR
Operation
Computes the bitwise XOR of the source and destination operands.
Assembler Syntax
XOR.{L|Q}(z) Rn(s), Rn(d)
XOR.{B|W|L|Q}(z) Rn(s), <ea>(e)
XOR.{B|W|L|Q}(z) <ea>(e), Rn(d)
XOR.{B|W|L|Q}(z) <imm8s>, <ea>(e)
XOR.{W|L|Q}(z) <imm16s>, <ea>(e)
XOR.{L|Q}(z) <imm32s>, <ea>(e)
XOR.Q <imm64>, <ea>(e)
Privilege
Unprivileged
Repeat eligibility
REP eligible; REPcc observes dst
Writes the selected-width bitwise exclusive-or of the source and destination values to the destination.
2.75in
Encodings
XOR.{L|Q}(z) Rn(s), Rn(d)
Format: Instruction format for XOR.{L|Q}(z) Rn(s), Rn(d)
2.75in XOR.{B|W|L|Q}(z) Rn(s), <ea>(e)
Format: Instruction format for XOR.{B|W|L|Q}(z) Rn(s), <ea>(e)
dst — excluded: immediate [invalid_destination]
2.75in XOR.{B|W|L|Q}(z) <ea>(e), Rn(d)
Format: Instruction format for XOR.{B|W|L|Q}(z) <ea>(e), Rn(d)
2.75in XOR.{B|W|L|Q}(z) <imm8s>, <ea>(e)
Format: Instruction format for XOR.{B|W|L|Q}(z) <imm8s>, <ea>(e)
dst — excluded: immediate [invalid_destination]
2.75in XOR.{W|L|Q}(z) <imm16s>, <ea>(e)
Format: Instruction format for XOR.{W|L|Q}(z) <imm16s>, <ea>(e)
size — allowed: 0x1..0x3 [immediate_wider_than_operation_size]
dst — excluded: immediate [invalid_destination]
2.75in XOR.{L|Q}(z) <imm32s>, <ea>(e)
Format: Instruction format for XOR.{L|Q}(z) <imm32s>, <ea>(e)
dst — excluded: immediate [invalid_destination]
2.75in XOR.Q <imm64>, <ea>(e)
Format: Instruction format for XOR.Q <imm64>, <ea>(e)
dst — excluded: immediate [invalid_destination]