i32.and
Pops two i32 values off the stack, perform a bitwise AND between them, and then pushes the result back on to the stack.
$result = $first & $second

Syntax

i32.and

Stack In

i32 The first value.
i32 The second value.

Stack Out

i32 The result of performing a bitwise AND operation between the first and second values.

Example

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

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

;; Pop the two i32 values off the stack, perform bitwise AND
;; and push the result back onto the stack
i32.and

;; The stack contains an i32 value of 0b00001000 (8)