Repository navigation
tests/semantic: pin v_cvt_f64_i32/u32 and v_cvt_i32/u32_f64 as Unsupported instead of a self-built model - #4397
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. |
… op_sel again (ItsNotRexed#3853 vs ps_ops6.asm); v_cvt_f64_i32/u32 left test_valu_cvt_int_f64's refused list (ItsNotRexed#2521) ps_ops6.asm, assembled by llvm-mc for the GPU suite, writes op_sel:[1,0,0]; main read the first two entries and ItsNotRexed#3853 refused the form, so test_value_semantics failed. ItsNotRexed#4397's refused-by-name list still held the two int-to-f64 conversions ItsNotRexed#2521 implemented, which the file's docstring says to drop when that happens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.