Floats live in the existing 8-byte stack slots as raw bits and are computed
with scalar SSE ops via xmm0/xmm1. Adds consts, loads/stores, comparisons
(NaN-correct), abs/neg/copysign, ceil/floor/trunc/nearest (roundss/sd),
sqrt, add/sub/mul/div, wasm-semantics min/max (NaN propagating, -0 < +0),
int<->float conversions (incl. unsigned 64-bit), demote/promote,
reinterpret, and float globals. Trapping truncation traps on NaN
(new 'invalid conversion to integer' message) and on out-of-range values.
Adds examples/float.wat (52 self-checks) and examples/fptrap.wat.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Stack slots, locals and globals were already 8 bytes wide, so i64 is mostly
64-bit encodings of the existing i32 ops: constants, comparisons, arithmetic,
bitwise, shifts/rotates, div/rem (with zero and overflow traps), wrap/extend,
sign-extension ops, i64 loads/stores (incl. narrow forms) and 64-bit globals.
Adds examples/i64.wat, which self-checks and exits 0 on success.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>