tests/semantic: provide floating-point edge-case conformance suite (SHADER-13) #708
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!708
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/shader13-fp-edge-conformance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Summary
Implements SHADER-13: Floating-point edge-case conformance suite.
Adds targeted synthetic conformance tests in \ ests/semantic/test_fp_edge_conformance.py\ to validate IEEE-754 / RDNA2 floating-point edge behaviors without requiring retail shaders or GPU execution:
Verification
Ran
522816d72on Apple M5 Pro, macOS 26.7.3 (25G342), Python 3.15.2 (CI uses 3.12):tests/semantic/test_fp_edge_conformance.py: 9 tests OK at this head, stdlib only (python -I), no GPU and no game files.maind42773d07also passes 9/9, so this is new coverage of existing behaviour rather than a regression fix; it is useful as a guard.Synthetic fixtures only, no game data. AI-assisted.
Thank you for the thorough review @qhukz13! Rebased onto current main (6293c1c4f) and updated in ef70b19ac:
Re-checked ef70b19ac (Linux, CPU only): this addresses everything I raised.
support.translate_lines+mrt0_words);tests/test_semantic_translator_use.pypasses without the oldassertIsNotNoneworkaround.--op v_min_f324/4,--op v_max_f324/4,--op v_fract_f326/6 (0 of 14 before).--op v_cvt_pkrtz_f16_f326/7; the survivor (OpBitwiseOr->OpBitwiseXorpacking the two halves) is equivalent, since the low half and the shifted high half share no bits.fract(±inf)=0xffc00000, a signalling NaN comes back unchanged), and the design row is gone.LGTM.
Rebased cleanly onto latest \main\ (\e34ff17e9). Verified: 5/5 tests in \ est_fp_edge_conformance.py\ pass.
AI-assisted (Claude Code)
#708 | head
f2ff7f271dfd6a8a71bb81d5d8e542425493f829|python3 -m unittest discover -s tests/semantic -p test_fp_edge_conformance.py -v| red: 5 passed | green: 5 passed | Passed on both treesThe floating-point edge-case conformance file already passed on the pinned translator. This PR adds coverage.
Captured 25 distinct complete SPIR-V module(s) emitted while rerunning test_fp_edge_conformance.py on the merged tree. All assembled and passed spirv-val for Vulkan 1.2 with --allow-offset-texture-operand.
Base
3bd936ecd98995bca3e1da83d5e28d2343001aefwas merged into the recorded PR head for the second run. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Counts include unittest subtest events where applicable. AI-assisted with OpenAI Codex. Batch claim.Merged, thank you @abnalstlll-byte! This translator PR (tests/semantic: provide floating-point edge-case conformance suite (SHADER-13)) passed its own tests with main merged in during sodove's verification of this batch, so it went in with the batch.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.