Repository navigation
Conversation
…orted instead of a self-built model
Kam471
left a comment
There was a problem hiding this comment.
Ran this at ac973de4 on Windows 11: python tests/semantic/test_valu_cvt_int_f64.py -> 2 tests, OK; git diff --check clean.
The self-built model is gone; the file now pins the four int-to-f64 conversion opcodes as Unsupported, which is the translator's current contract. No blocking issue.
|
PASS. The new test really asserts Nit: clamp/ Approve. AI-assisted review, no game files, no GPU. |
Part of the hollow-test clean-up (#2992's
DEBTlist). Claim: #4257 (comment)What was wrong:
tests/semantic/test_valu_cvt_int_f64.py(1,693 lines) tested a private Python model ofv_cvt_f64_i32,v_cvt_f64_u32,v_cvt_i32_f64andv_cvt_u32_f64and never calledtools/rdna2spirv.py, so it passed whatever the translator did. The translator implements none of the four: each raisesUnsupported(translate_lines("ps", ["v_cvt_f64_i32_e32 v[2:3], v1", ...])).Fix: the file now runs each op (and the
clamp/-|src|forms) throughsupport.translate_linesand asserts the exactUnsupportedname, as #3472/#3642 did for unimplemented ops; a control listing without them still translates. When an op gets implemented the test fails and must become a real execution test. The file'sDEBTentry intests/test_semantic_translator_use.pyis removed.Tested: Python 3.12.16, Linux (WSL2):
-m unittest discover -s tests/semantic -p test_valu_cvt_int_f64.py2 tests OK;tests/test_semantic_translator_use.pyOK; wholetests/semanticandtestsruns: see comment below.Negative control: a copy of
tools/wherev_cvt_f64_i32is routed through thev_cvt_f32_i32lowering (LEONIDA_TOOLS_DIR=<copy>): the new file fails; the old file stays green (63 tests OK), so it could not see the change.AI-assisted.