feat: spec-testsuite integration, optimizer spilling, i32.popcnt#56
Merged
feat: spec-testsuite integration, optimizer spilling, i32.popcnt#56
Conversation
Optimizer register spilling: - Added spill-to-stack when all 9 temp registers are exhausted - Oldest live non-local vreg evicted to stack via STR/LDR - Spill frame prologue/epilogue (SUB SP/ADD SP) inserted as needed - Fixes panic in 8 spec files (block, loop, if, call, labels, ref_*) i32.popcnt: - Wired existing Popcnt pseudo-op to instruction selector - Previously returned error despite encoder already implementing it wast_multi_func_test macro: - Added --no-optimize parameter support for heavy register pressure files Implements: FR-002 Trace: skip Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
76 wast_multi_func_test targets organized by category: i32, i64, f32, f64, control flow, memory, tables, functions, data/bulk, traps, and reference types. References .wast files from the spec-testsuite submodule via //tests/spec-testsuite: labels. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Official WASM Spec Test Suite Integration
wast_multi_func_testBazel targets intests/spec/BUILD.bazel--no-optimizeflag added to macro for high register pressure filesOptimizer Register Spilling
optimizer_bridge.rswhen all 9 temp registers are exhaustedi32.popcnt Instruction Selection
Popcntpseudo-op (parallel bit-count algorithm) to instruction selectorTest plan
cargo test --workspace— 766+ tests, 0 failurescargo clippy --workspace --all-targets -- -D warnings— cleancargo fmt --check— clean🤖 Generated with Claude Code