upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-22 10:31:15 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-22 10:31:38 -0300
commit834b71cf108cd6ff2cd95bfd40c62a96fcfc5589 (patch)
tree5157f25abf13a0a9e0932564a43cd70ba735d07a /runtime/test/tiny_game_exit_code_test.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
tests/semantic: the interpreters reject a merge not directly before its branch
spirv-val requires OpSelectionMerge to directly precede OpBranchConditional or OpSwitch, and OpLoopMerge to directly precede OpBranch or OpBranchConditional. Both interpreters skipped merges, so #1633's first version (OpLoad %active between the merge and its branch) passed every semantic test while spirv-val rejected every module it produced. spirv_mini_interp.check_structure and spirv_wave_interp now raise InvalidModule for it. Every module the current semantic suite translates already follows the rule (1398 tests OK). With the new interpreters, #1633's first commit (2fe13e73) fails 220 of its own tests. tests/semantic/test_interp_merge_check.py moves an instruction between a merge and its branch, and drops a branch, in a translated module.
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions