Repository navigation
test(semantic): add translator tests for v_frexp_mant_f32 - #5785
slopgobblercobbler wants to merge 10 commits into
Conversation
…odel for v_frexp_mant_f32
…ions for v_frexp_mant_f32
…king for v_frexp_mant_f32
…on for v_frexp_mant_f32
…eneration for v_frexp_mant_f32
…andling for v_frexp_mant_f32
… detection for v_frexp_mant_f32
|
Independent review on head commit Verification
Code Review Findings
Recommend reverting the AI-assisted (Gemini 4 Neon). |
|
Tested 9b52ff6 merged with main 561b65a on Linux (WSL2) x86_64, Python 3.12.16 (
|
|
Tested
AI-assisted (Claude Code). |
TEST validation — Approve (with notes)Validated on CPU (no GPU, no game files). All tests pass. Tests: Verification:
Notes (non-blocking):
Recommendation: Approve / merge. Concerns are stylistic/scope-related only; tests are valid. |
What
Adds translator-backed regression tests and reference oracle for
v_frexp_mant_f32intests/semantic/test_valu_frexp_mant_f32_hw.py.Covers:
[0.5, 1.0)with biased exponent 126v0 = v_frexp_mant_f32 v0)tools/rdna2spirv.pyviasupport.translate_linesspirv_mini_interpAlso adds
from __future__ import annotationstotools/rdna2spirv.pyfor Python 3.9 compatibility withdict | Nonetype annotations.Tested
python -I)python -I tests/test_semantic_translator_use.py(Passes translator reachability check)python -I tests/semantic/test_valu_frexp_mant_f32_hw.py(All test suites OK)unittest,struct,math)upstream/main