i64.xor
Pops two i64 values off the stack, perform a bitwise XOR between them, and then pushes the result back on to the stack.
$result = $first ^ $second

Syntax

i64.xor

Stack In

i64 The first value.
i64 The second value.

Stack Out

i64 The result of performing a bitwise XOR operation between the first and second values.

Example

;; Push the i64 value 0b00001010 (10) onto the stack
i64.const 10

;; Push the i64 value 0b00001100 (12) onto the stack
i64.const 12

;; Pop the two i64 values off the stack, perform bitwise XOR
;; and push the result back onto the stack
i64.xor

;; The stack contains an i64 value of 0b00000110 (6)