Repository navigation
tests/semantic: run u16 clamp, interp_p1/p2 and cmp_class through the translator; drop fake dot2_f16 - #4123
tests/semantic: run u16 clamp, interp_p1/p2 and cmp_class through the translator; drop fake dot2_f16#4123SweatierKey wants to merge 1 commit into
Conversation
… cmp_class, dot2_f16)
Kam471
left a comment
There was a problem hiding this comment.
Ran this at cb796d31 on Windows 11:
test_alu_u16_clamp.py6 tests OK;test_interp_p1_p2_f32.py3 OK;test_valu_cmp_class.py5 OK;test_valu_dot2_f16.pyis removed;test_semantic_translator_use.py3 OK with those four entries gone fromDEBT.- The remaining two debt entries are indeed
test_valu_cvt_int_f64.pyandtest_valu_ldexp_f64.py, matching the note.
The four replacements translate the synthetic listings and run the interpreter rather than modelling the answer; the dot2 file had no translator path and is dropped. No blocking issue.
|
Verified at the head on Windows 11 / Python 3.13.0: all three files call The deleted Coverage notes, both acceptable since these were oracle-only cases rather than previous translator coverage: the modifier tests no longer include the sNaN/zero/denormal extremes ( Separately, Approve. AI-assisted review, no game files, no GPU. |
Claimed in #4084 (claim).
Clears the four remaining unclaimed
DEBTentries intests/test_semantic_translator_use.py(leavingtest_valu_cvt_int_f64.pyandtest_valu_ldexp_f64.pyfor #3325 and #3543):What changed
tests/semantic/test_alu_u16_clamp.py: replaced the 59-line Python-only stub with translator-driven tests exercisingv_add_nc_u16_e64,v_sub_nc_u16_e64,v_add_u16_e64,v_sub_u16_e64,v_subrev_u16_e64(clampvs wrap,op_selhigh/low-half preservation), packedv_pk_add_u16/v_pk_sub_u16clampvs wrap, and the negative control (v_mul_lo_u16_e64 ... clampraisesUnsupported, matchingdocs/design.md).tests/semantic/test_interp_p1_p2_f32.py: replaced the 1,485-line private oracle with translator-driven fragment shaders coveringv_interp_p1_f32+v_interp_p2_f32across all four channels and multiple attributes (attr0..attr2),v_interp_mov_f32 p0(Flatdecoration), and inactive-lane preservation viasupport.varyings/support.mrt0_words.tests/semantic/test_valu_cmp_class.py: replaced the 1,373-line private oracle with translator-driven tests covering all 10 IEEE 754 class bits for bothv_cmp_class_f32andv_cmp_class_f64, composite/high-bit masks, VOP3abs/negmodifiers, and 32-lanev_cmpx_class_f32_e32/v_cmpx_class_f64_e32EXECupdates.tests/semantic/test_valu_dot2_f16.py: deleted (1,695-line private oracle forv_dot2_f16_f16/v_dot2acc_f16_f16, neither of which is a valid GFX10 /gfx1013opcode — both rejected byllvm-mc -mcpu=gfx1013).tests/test_semantic_translator_use.py: removed all four entries fromDEBT.Tested
Linux (WSL2), Python 3.13.5,
spirv-as+spirv-val --target-env vulkan1.2onPATH, CPU only, no game files:python3 -I tests/semantic/test_alu_u16_clamp.py -v: 6/6 OK (all emitted SPIR-V validated byspirv-val)python3 -I tests/semantic/test_interp_p1_p2_f32.py -v: 3/3 OK (all emitted SPIR-V validated byspirv-val)python3 -I tests/semantic/test_valu_cmp_class.py -v: 5/5 OK (all 20 single-bit class probes + composite/mod/cmpx shaders validated byspirv-val)python3 -I tests/test_semantic_translator_use.py -v: 3/3 OKtests/test_docs_repo_paths.py(2/2),tests/test_docs_links.py(6/6),tests/test_text_write_line_endings.py(3/3),tests/test_text_encoding.py(2/2): all OK.