i64.mul
Pops two i64 values off the stack, multiples them together, and then pushes the result back on to the stack.
$result = $first * $second

Syntax

i64.mul

Stack In

i64 The first value to be multipled.
i64 The second value to be multipled.

Stack Out

i64 The result of multipling the first and second values together.

Example

;; Push the i64 value 4 onto the stack
i64.const 4

;; Push the i64 value 3 onto the stack
i64.const 3

;; Pop the two i64 values off the stack, multiply them together and
;; push the result back onto the stack
i64.mul

;; The stack contains an i64 value of 12