CMPXCHG8B compares the quadword in EDX:EAX with a 64-bit memory operand. If they are equal, the quadword in the ECX:EBX register pair is loaded into destination and the zero flag is set; otherwise, the destination operand is loaded into the EDX:EAX register pair and the zero flag is cleared.