I was looking into regalloc2 to investigate having MachineEnv use PRegSet (https://github.com/bytecodealliance/wasmtime/pull/8489#issuecomment-2106379885): running tests however, there seem to be far fewer than in wasmtime and only testing small areas of the code? Is there an additional test suite I may be missing?
I believe the primary testing is the fuzzer when combined with the regalloc checker
https://github.com/bytecodealliance/regalloc2/blob/main/fuzz/fuzz_targets/ion_checker.rs is the main one I believe
you should be able to run it via:
$ cargo fuzz run -s none ion_checker
inside the regalloc2 repo
you'll need to install cargo fuzz
if you don't have it yet:
$ cargo install cargo-fuzz
Indeed, we explicitly chose to test via fuzzing first with RA2; any change should be fuzzed for at least a few hours with ion_checker
Kirp has marked this topic as resolved.
Last updated: Dec 23 2024 at 12:05 UTC