f64
values off the stack, checks to see if they are the same, and then
pushes the result back on to the stack.
f64.eq
f64 | The first value to check with. |
f64 | The second value to check against. |
i32 | The result of the comparsion. If the first and second values match then the result will be 1. If the values are different then the result will be 0. |
;; Push the f64 value 3.142 onto the stack f64.const 3.142 ;; Push the f64 value 2.718 onto the stack f64.const 2.718 ;; Pop the two f64 values off the stack, check if they are the same and ;; push the result back onto the stack f64.eq ;; The stack contains an i32 value of 0 (not the same)
;; Push the f64 value 3.142 onto the stack f64.const 3.142 ;; Push the f64 value 3.142 onto the stack f64.const 3.142 ;; Pop the two f64 values off the stack, check if they are the same and ;; push the result back onto the stack f64.eq ;; The stack contains an i32 value of 1 (values are the same)