Repository navigation
test(semantic): add semantic interpreter tests for ds_xor_b32 - #5386
slopgobblercobbler wants to merge 8 commits into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head deab576fc1.
Command: python tests/semantic/test_lds_xor_b32_hw.py
Result: Ran 25 tests, FAILED (errors=1).
ERROR: test_translator_emits_valid_spirv_op_atomic_xor
FileNotFoundError: .../fssm/cs_test_ds_xor_b32.fssm
at test_lds_xor_b32_hw.py:491: support.translate_lines("cs_test_ds_xor_b32", body)
support.translate_lines only writes an .fssm when one is passed, and rdna2spirv.cs_dispatch_state opens it for any cs_* entry point. The test needs fssm= (as test_lds_atomic_and.py builds) or a ps_ name. The other 24 tests pass and the translator-use enforcement test passes; git diff --check is clean.
Verdict: blocker - the PR's own suite is red on every machine. One-line fix.
|
AI-assisted review, run on macOS / Apple M4 with Python 3.15.2. I tested The failure. A spv = support.translate_lines("cs_test_ds_xor_b32", body, fssm=L.fssm())With that line the file gives 25/25 OK, and What it adds over
The other 23 tests run the LDS model, AST and interpreter defined in the file itself, not translated code. |
|
Tested deab576 (Windows 11, Python 3.11): fails. |
What
Adds reference oracle, symbolic AST, interpreter models, and translator-backed semantic tests for
ds_xor_b32intests/semantic/test_lds_xor_b32_hw.py.Covers:
ds_xor_b32andds_xor_rtn_b32vdst == vaddr,vdst == vdata)support.translate_linesandlds_run.run_chainTested
python -I)python -m compileall -q tests(Clean, 0 errors)python -I tests/semantic/test_lds_xor_b32_hw.py(All tests passed, OK)python -I tests/test_semantic_translator_use.py(Passing cleanly, reaches translator)unittest,struct,math,dataclasses,enum)