Repository navigation
test(semantic): add translator tests for v_pk_max_u16 - #5663
slopgobblercobbler wants to merge 8 commits into
Conversation
|
Ran
No GPU, no game data. AI-assisted. |
|
Updated |
0c088a8 to
cd9ccc6
Compare
|
Tested cd9ccc6 merged with main 561b65a on Linux (WSL2) / Python 3.12.16: pass tests/semantic/test_valu_pk_max_u16_hw.py (new, test-only): 21 run, 21 passed, 0 failed, no skips. Merge with main was clean. Negative control: the file only adds a test, so it trivially passes on main. Mutating the translator so Note: of the 21 tests only about 5 go through the translator and mini interpreter; the rest (oracle, AST, scalar and wave32/wave64 "interpreter", aliasing, condition-code and mutant checks) test classes defined in the test file itself. The |
What and why
Adds a bit-accurate reference mathematical oracle, AST definitions, scalar interpreter, SIMD multi-lane divergence model, register aliasing checks, status flags, IEEE 754 edge cases, and negative mutation tests for
v_pk_max_u16intests/semantic/test_valu_pk_max_u16_hw.py.Exercises the
rdna2spirvtranslator throughsupport.translate_lines(...)and verifies outputs withsupport.mrt0_words(spv).Tested
python -m compileall -q testspython -I tests/semantic/test_valu_pk_max_u16_hw.pypython -I tests/test_semantic_translator_use.pypython -Icompatible, 0 external dependencies)Checklist
docs/design.md, with how it was confirmed.