f32.ne
Pops two f32 values off the stack, checks to see if they are not equal to each other, and then pushes the result back on to the stack.
if ($first !== $second) {...}

Syntax

f32.ne

Stack In

f32 The first value to check with.
f32 The second value to check against.

Stack Out

i32 The result of the comparsion. If the first and second values are not equal then the result will be 1. If the values are the same then the result will be 0.

Examples

;; Push the f32 value 3.142 onto the stack
f32.const 3.142

;; Push the f32 value 2.718 onto the stack
f32.const 2.718

;; Pop the two f32 values off the stack, check if they are not the same and
;; push the result back onto the stack
f32.ne

;; The stack contains an i32 value of 1 (not the same)
;; Push the f32 value 3.142 onto the stack
f32.const 3.142

;; Push the f32 value 3.142 onto the stack
f32.const 3.142

;; Pop the two f32 values off the stack, check if they are not the same and
;; push the result back onto the stack
f32.ne

;; The stack contains an i32 value of 0 (values are the same)