Commit Graph

2 Commits

Author SHA1 Message Date
432dae12f0 test_control_flow_branches: model OpPhi in the structured interpreter
#984's loop guard (tools/spirv_loop_guard.py, the 'Loop guard' row in docs/design.md) puts an iteration counter at every loop header as an OpPhi. The interpreter this test file carries did not model OpPhi, so the four loop cases stopped with 'Opcode not modelled' on the translator's default output. The interpreter now tracks the predecessor block and evaluates OpPhi; the cases and their expected values are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 19:38:24 -05:00
36a30a52d0 test(semantic): add interpreter tests for scalar conditional branches s_cbranch_scc0/1 2026-11-22 16:30:46 +01:00