- memory.copy / memory.fill (0xFC 0x0A/0x0B) with bounds checks via rep movsb/stosb
- module "sys" host intrinsics for hand-written wasm shims: syscall, membase,
argv_base, peek64, strlen, copy_in; _start saves the initial rsp for argv
(only when the module has a data segment)
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>