Repository navigation
crosslane_fuzz: accept --modes both, reject unknown modes - #638
Conversation
The run loop only knows native and emulate. --modes both (offered by the help) or a typo like emulat ran every program natively, wave64 included without --w64-native, and reported false mismatches.
|
Tested 082e150 (base c432cdc) on NVIDIA GeForce RTX 4060 Ti (Ada, subgroup 32..32), driver 32.0.16.2124 (NVIDIA 621.24), Windows 11; LLVM 21.1.8 (WSL), Vulkan SDK 1.4.363,
AI-assisted. |
|
Tested #638 at the merged head 082e150, on the AMD + 32-wide pair it asked for: one Windows 11 machine with an AMD Radeon Graphics iGPU (Ryzen 7 7800X3D, RDNA2, driver 32.0.21043.5001, subgroup 32..64) and an RTX 4070 Ti SUPER (610.88, subgroup 32). Test programs built from main c432cdc (llvm-mingw clang), llvm-mc 23.1.6.
Finding (not from this PR, it's in main too): Suggested fix: the same lines (AI-assisted run, counts only.) |
Claimed in the coordination issue as: new BUILD item (#374 (comment))
What and why
Nothing checked
--modes.--modes both(what the help offers) or a typo likeemulatpassed both checks in the run loop. Every program was translated without--wave64-emulateand run, wave64 included without--w64-native, and the run reported false mismatches under awave64 bothlabel.parse_modesnow reads--modes.bothmeansnative,emulateand repeats are dropped. An unknown or empty value is an argparse error (exit 2) before anything runs.Tested
python -I tests/test_crosslane_fuzz.py: 15 pass on Python 3.13 and 3.14. The 4 new tests fail onmain.python -m compileall -q make_game.py tools testsChecklist
docs/design.md, with how it was confirmed. (not a translator change)AI-assisted.