Repository navigation
tests: accept both write shapes for an f64 result, and pin three newlines - #7209
thiefyzheng wants to merge 1 commit into
Conversation
…ines ItsNotRexed#4473 (92417d5) added Gen.exec_static_true: a shader that never writes EXEC has %active constant true, so dst() stores the value directly instead of merging it over the register's old word. test_f64_conversion and test_f64_output_modifiers still pinned the merge shape (OpLoad dest / OpSelect mask / OpStore merged) and failed six and seven subtests on main. tests/listing.py gains check_written(), which requires the destination to receive exactly the caller's computed value - the omod OpFMul and the clamp chain are still pinned by the caller - and accepts either way of landing it: the masked select-and-store, or a direct store under a guard. The masking property itself stays pinned by tests/semantic/test_carry_exec_mask.py (OK here) and tests/semantic/test_active_cache.py. Non-vacuity: with the old assertion restored, both files fail on this base (6 subtests); with the change they pass, and mutating the omod chain still fails them. Also pins newline="\n" on three text writes the gate names: tools/f64_omod_probe.py:268, tools/leonida_tui.py:753 (the console log) and tools/wave_diff.py:373. tests/test_text_write_line_endings.py, tests/test_f64_conversion.py, tests/test_f64_output_modifiers.py and tests/semantic/test_carry_exec_mask.py all pass. Found by the per-file sweep reported in ItsNotRexed#6910. AI-assisted.
|
Update from main, fresh measurements (AI-assisted agent work; every claim below was actually run locally, no game data involved):
So in addition to accepting both f64 write shapes in the tests, the head currently greens this live main regression of the newline convention. If it helps the merge, the two |
|
Tested f05e611 merged onto main 8575d36 on Windows 11 Pro, Intel i7-14700KF, CPython 3.11.0 (venv: pytest 9.2.0, numpy 2.4.6, Pillow 13.0.0; numpy is below the 2.5.5 pin because 2.5 needs Python 3.12), CPU only: pass, with notes.
Notes:
AI-assisted (Claude Code). |
|
Tested f05e611 merged onto main
Also makes It merges cleanly together with #7092 #6049 #7120 #6513 #7242 #6254 #7214 #6957 #7309 #4771 #7029 #7094 #7129 #6508 #7152 #7174 #7032 onto main; with all of them applied, the only standalone test still red on Windows is No GPU or game files needed. AI-assisted (Claude Code); I read the diff before running it. |
What
Two
f64tests and three text writes, all named by the per-file sweep ofmainreported on the coordination issue.1. Two tests pinned a write shape the translator stopped emitting
#4473(92417d591, "cache per-block %active loads and fast-path no-EXEC dst() writes") addedGen.exec_static_true: a shader that never writes EXEC has%activeconstant true, sodst()stores the value directly instead of loading the destination and merging it throughOpSelect. That commit updated seven test files but not these two, so onmain:tests/listing.pynow hascheck_written(case, spvasm, dest, value), which requires the destination to receive exactly the caller's computed value — theomodOpFMuland theFClampchain are still pinned by the caller — and accepts either landing: the maskedOpSelect/OpStorepair, or a directOpStoreunder a guard.What this does not weaken: the masking property is still pinned, independently, by
tests/semantic/test_carry_exec_mask.py(OK on this base) andtests/semantic/test_active_cache.py(added by #4473). If a reviewer would rather keep it pinned here too, the only portable way is asserting the enclosingif (active)structure, which is more brittle than the property test that exists.2. Three text writes without a pinned newline
All three now pass
newline="\n"; two of them (leonida_tui.py:753, the console log;wave_diff.py:373) were not in the report and only appeared once main moved.Verification
tests/test_f64_conversion.pytests/test_f64_output_modifiers.pytests/test_text_write_line_endings.pytests/semantic/test_carry_exec_mask.pyNon-vacuity: with the old assertion restored on this base the two files fail again; mutating the
omodchain still fails both.No game files, no GPU. AI-assisted: yes — the failures were found by an automated sweep, the diagnosis of which side had moved is in
tests/listing.py's docstring, and every number above was produced by running the command shown.