Repository navigation
Conversation
… store the translator writes now test_f64_conversion.py and test_f64_output_modifiers.py pinned the old shape of a VGPR write (an %vgpr OpAccessChain, an OpLoad of the old word and an OpSelect mask), which the translator no longer emits: each VGPR is its own variable and the word is stored to it directly. All 13 subtests failed on main, including the unmodified case. The data flow they check (convert/add, then the omod scale, then the clamp, then the store) is unchanged and correct. They now require the word to be stored to exactly the right register and to no other (v3 for the conversion; v4 and v5 for the f64 add), so a store to the wrong register still fails; a negative control with the wrong register fails 6 subtests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Tested on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no GPU/llvm-mc/MSVC used, no game files): pass. AI-assisted (Claude Code). Only the tests this PR touches were run, from a clean checkout of the PR head. |
|
Follow-up to my earlier result (head f277a09): on current origin/main both AI-assisted (Claude Code). |
|
Independent Windows / Python 3.15 verification at f277a09: python -I test_f64_conversion.py 1/1 OK; test_f64_output_modifiers.py 2/2 OK; test_f64_omod_probe.py 8/8 OK. Wrong-destination negative control: executing the conversion test with reg_v3 replaced by reg_v4 in memory fails all six modifier subtests at the destination-store assertion. No test file was edited for that control. Synthetic CPU inputs only, no GPU/game files. AI-assisted (Codex). |
|
Tested f277a09 (merged onto main dd25fe6) on Windows 11 (10.0.26300), Python 3.15.2: pass
The failures on main are the pre-#4473 write shape ( Overlap, for whoever merges: #6474, #6994 and #7209 each fix both files on their own (I ran all three the same way), so only one of them is needed. #7365 was closed for the same reason. AI-assisted run (Claude Code). |
|
Closing in favour of #6474 ( |
Claim: #6910 (comment) (new item; related to the finding in
thiefyzheng's comment, part D)Depends on: none. #2437 and #4371 (translator changes) also edit these two test files; this is a separate, small fix to the final store assertion in each, so whichever lands second has a trivial rebase.
Problem
tests/test_f64_conversion.pyandtests/test_f64_output_modifiers.pyfail onmain: 13 subtests, including the unmodified case. They pin the old shape of a VGPR write (an%vgprOpAccessChain, anOpLoadof the old word and anOpSelectmask). The translator no longer emits that: every VGPR is its own variable, and the word is stored to it directly (OpStore %reg_v3 ...).I checked all six conversion cases by hand against the translator's output: the data flow they test (convert or add, then the omod scale, then the clamp, then the store) is correct and unchanged. Only the final assertion was stale.
Change
Only the last store assertion in each file. It now requires the word to be stored to exactly the right register and to no other:
v3forv_cvt_f32_f64,v4andv5for the f64 add (low and high word). Everything else is unchanged: the scale constants, the clamp, theFMul-absent check,NoContractionand the GPU fixture expectation.Tested (Linux, Python 3.14, no GPU, no game files)
python -I tests/test_f64_conversion.py: 1 test, OK (was 6 subtests failed).python -I tests/test_f64_output_modifiers.py: 2 tests, OK (was 7 subtests failed).%reg_v4for the conversion), the conversion test fails 6 of 6 subtests.python -I tests/test_f64_omod_probe.py: OK.python -m compileall -qon both files: OK.tests/test_text_write_line_endings.pyfails onmainon thetools/f64_omod_probe.py:268write (part C of that finding; f64_omod_probe: pin newline="\n" when writing JSON report #6461, f64_omod_probe: write the --json report with LF on every platform #6597 and tools: write f64_omod_probe reports with LF line endings #6687 fix it).AI-assisted (Claude Code).
🤖 Generated with Claude Code