Repository navigation
test(semantic): add translator tests for v_mul_f64 - #5433
slopgobblercobbler wants to merge 2 commits into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Head: 58d13c1ec685949ad73a241b6167fe95f866b1af
Windows 11, Python 3.13.7:
python tests/semantic/test_valu_mul_f64_hw.py-> 13 tests, OK (0.71 s)- Negative control: same file with
LEONIDA_TOOLS_DIRpointed at main3faac557-> 52 errors,rdna2spirv.Unsupported: v_mul_f64(expected). python -I tests/test_semantic_translator_use.py-> OKgit diff --check main...HEAD-> clean
Overlap: #5435 edits the same f64 op tuple and emission block in tools/rdna2spirv.py. git merge-tree --write-tree pr/5433 pr/5435 exits 1 with a content conflict in that file; one of the two needs a rebase.
Verdict: LGTM after the #5435 conflict is resolved.
PR 5433 (v_mul_f64 translator + tests), GPU checkVerdict: pass. No defect found. Head tested: 58d13c1 (2 commits on top of origin/main 3faac55, so it merges cleanly, fast-forward; the merged tree is the PR head). Comment (not posted)Tested 58d13c1 on NVIDIA GeForce RTX 5080 (driver 580.65.06), Linux, translator and GPU suite: pass
Notes for main (not for the comment)
|
|
Tested What passes
Gap 1: a literal source goes into the low word
Gap 2: MODE round toward zero is ignored
Neither gap affects today's corpus, because no listing uses the op. Smaller points
The probe scripts are standard library only and I can paste them here. No game data: counts only. AI-assisted. |
#5433 (head 58d13c1, open)Tested 58d13c1 on Windows 11, AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32029.2010: pass
AI-assisted (Claude Code). |
|
Tested 58d13c1 (CPU, Windows 11, Python 3.11): pass. |
|
Follow-up: on the PR head 58d13c1 the full |
|
Tested 58d13c1 on Windows 11, Python 3.11 (CPU only): pass. |
|
Tested 58d13c1 on AMD Radeon RX 6800 (RDNA2, discrete, gfx1030), AMD 26.8.1 (Windows 32.0.21045.5002), Windows 11 Pro 25H2 (build 26200), MSVC 14.44, RelWithDebInfo: pass.
No game files. AI-assisted (Claude Code). |
What
Adds translator-backed regression tests and translator support for
v_mul_f64intests/semantic/test_valu_mul_f64_hw.py.Covers:
tools/rdna2spirv.pyto SPIR-VOpFMul %doublespirv_interpneg,abs,neg-abs)clamp,mul:2,mul:4,div:2)Tested
python -I)python -m compileall -q tests(Clean, 0 errors)python -I tests/test_semantic_translator_use.py(Passes translator reachability check)python -I tests/semantic/test_valu_mul_f64_hw.py(All 13 tests passed, OK)unittest,struct,math)upstream/main