Repository navigation
test(semantic): add translator tests for v_cubema_f32 - #5566
slopgobblercobbler wants to merge 8 commits into
Conversation
…odel for v_cubema_f32
…ions for v_cubema_f32
…king for v_cubema_f32
…on for v_cubema_f32
…eneration for v_cubema_f32
…andling for v_cubema_f32
… detection for v_cubema_f32
|
Tested The subnormal expectation in Two finite controls also make the tie priority observable. With inputs (+2, −2, 0) the GPU returned −4 (Y wins). With (+2, −2, +2) it returned +4 (Z wins). The current same-sign tie vectors produce the same answer whichever tied axis is chosen. AI-assisted verification. |
|
Verified against main 561b65a: the one-line from future import annotations before rdna2spirv.py's module docstring is the ONLY merge conflict (round-44 rewrote that docstring) — and it is provably unnecessary: your test_valu_cubema_f32_hw.py passes 27/27 dropped onto plain current main without any tools change (re-run), and the guard stays green. Removing the line makes the PR merge clean; as placed it would also silently set the module's doc to None. v_cubema_f32 is a real encoding (isa_tables 0x147) and the suite itself passes the translator-use guard at 27 tests. Please drop the tool edit and rebase. Checks queued. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
What
Adds translator-backed regression tests and reference oracle for
v_cubema_f32intests/semantic/test_valu_cubema_f32_hw.py.Covers:
tools/rdna2spirv.pyviasupport.translate_linesspirv_mini_interpTested
python -I)python -I tests/test_semantic_translator_use.py(Passes translator reachability check)python -I tests/semantic/test_valu_cubema_f32_hw.py(All test suites OK)unittest,struct,math)upstream/main