Add i64 and f32/f64 support (README updated to match) #3

Merged
nandi merged 2 commits from geordi/update-readme-types into main 2026-11-21 11:15:47 +00:00
Owner

Brings the compiler up from i32-only to i32, i64, f32 and f64, and updates the README's "Supported subset" section to say so.

Why: the README still described the compiler as i32-only and listed i64/floats as unsupported, while the code on geordi/add-i64-support already handles them. This branch fast-forwards to that work so the README and code agree.

Adds examples/i64.wat, float.wat, fptrap.wat. Tests were not run (moon isn't installed in this environment).

🤖 Generated with Claude Code

Brings the compiler up from i32-only to i32, i64, f32 and f64, and updates the README's "Supported subset" section to say so. Why: the README still described the compiler as i32-only and listed i64/floats as unsupported, while the code on `geordi/add-i64-support` already handles them. This branch fast-forwards to that work so the README and code agree. Adds `examples/i64.wat`, `float.wat`, `fptrap.wat`. Tests were not run (`moon` isn't installed in this environment). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nandi added 2 commits 2026-11-21 11:14:47 +00:00
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>
nandi merged commit 987cdf256b into main 2026-11-21 11:15:47 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nandi/wasm2elf-mb#3