Repository navigation
tests/semantic: drop three model-only duplicates of the frexp/ldexp translator tests (SHADER-797) - #6231
Open
slint6614-dev wants to merge 1 commit into
Open
tests/semantic: drop three model-only duplicates of the frexp/ldexp translator tests (SHADER-797)#6231slint6614-dev wants to merge 1 commit into
slint6614-dev wants to merge 1 commit into
Conversation
…ranslator tests (SHADER-797) test_alu_frexp.py and test_alu_ldexp.py run hand-written SPIR-V through spirv_mini_interp, and test_valu_ldexp_f64.py checks a private model; none reaches the translator. test_alu_frexp_ldexp.py already translates v_frexp_mant_f32, v_frexp_exp_i32_f32 and v_ldexp_f32 (extremes, specials, abs/neg/clamp/omod), and test_alu_ldexp_f64.py translates v_ldexp_f64 against gfx1036 measurements. Drop the three files and their ALLOWLIST/DEBT entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013nWg6GaC13rCneTote8CNR
|
On 5852794b on 561b65a8, The three removed files are still listed in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: SHADER-797 (claim)
What and why
SHADER-797 is a hollow-test clean-up, two batches from the ALLOWLIST/DEBT of
tests/test_semantic_translator_use.py. Batch (2) (test_alu_lshl_add.py,test_alu_sad_hi_u32.py,test_alu_pack_in_place.py) is already off both lists onmain561b65a8. That leaves batch (1). Each of those three files duplicates a test that already runs the translator:rdna2spirv)spirv_mini_interp)test_alu_frexp.py(745 lines, hand-written SPIR-V; ALLOWLIST)test_alu_frexp_ldexp.py:v_frexp_mant_f32/v_frexp_exp_i32_f32known values, 60 seeded normals, mant × 2^exp round trip, ±0, ±inf, NaN,-/|…|/mul:2/mul:4 clamptest_alu_ldexp.py(719 lines, hand-written SPIR-V; ALLOWLIST)test_alu_frexp_ldexp.py:v_ldexp_f32known values, 80 seeded cases, overflow and underflow including0x7FFFFFFFand INT_MIN exponents, ±0 / inf / NaN with any exponent,-,|…|,mul:2,clamptest_valu_ldexp_f64.py(1,541 lines, private model; DEBT)test_alu_ldexp_f64.py:v_ldexp_f64against gfx1036 measurements (specials, subnormal inputs and outputs with ties, abs/neg/clamp, operand forms and aliasing, a seeded sweep, rejected forms)The removed files test a model or the interpreter, not the translator, and they add no case the translator tests miss. The translator lowers
v_ldexp_f64sincea59367f7, so there is nothing left to pin asUnsupported, as the claim had planned. Rewriting these files would add a third copy of the same checks. This PR deletes them and drops their three list entries, which is what the guard's comment asks for ("fixing the file, or deleting it, simply removes it from the debt").The cases those files modelled and the translator tests leave out are f32 denormal inputs and results and FTZ/DAZ modes.
test_alu_frexp_ldexp.py's docstring explains why: the translator doesn't model f32 denormals (docs/design.md).Related: SHADER-1039 (a new
v_ldexp_f64translator test) appeared on the board while I worked on this.test_alu_ldexp_f64.pyonmainalready is that test.Tested
Linux (WSL2 Ubuntu 26.04), Python 3.14; no GPU or game files.
python -I tests/test_semantic_translator_use.py: 3 tests OK (the allowlist and debt checks included).python -I -m unittest discover -s tests/semantic -p test_alu_frexp_ldexp.py: OK;-p test_alu_ldexp_f64.py: OK.grepover*.py,*.md,*.yml).git merge-treeagainst this branch gives the same result as againstmainfor each, so this PR adds no conflict.python -m compileall -q,git diff --check: clean.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code
https://claude.ai/code/session_013nWg6GaC13rCneTote8CNR