f32
values off the stack, checks if the first value is less than the second, and then
pushes the result back on to the stack.
f32.lt
f32 | The first value to check with. |
f32 | The second value to check against. |
i32 | The result of the comparsion. If the first value is less than the second value then the result will be 1. Otherwise the result will be 0. |
;; 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 the first is less ;; than the second and push the result back onto the stack f32.lt ;; The stack contains an i32 value of 0 (3.142 < 2.718 = is not less)
;; Push the f32 value 2.718 onto the stack f32.const 2.718 ;; Push the f32 value 3.142 onto the stack f32.const 3.142 ;; Pop the two f32 values off the stack, check if the first is less ;; than the second and push the result back onto the stack f32.lt ;; The stack contains an i32 value of 1 (2.718 < 3.142 = is less)