diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 10:31:15 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-22 10:31:38 -0300 |
| commit | 834b71cf108cd6ff2cd95bfd40c62a96fcfc5589 (patch) | |
| tree | 5157f25abf13a0a9e0932564a43cd70ba735d07a /runtime/shims/process.cpp | |
| parent | a0acd33d77babe67a28e398b2936a9f735a50f5d (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/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions