diff options
| author | Ewann <dev.lechacal@gmail.com> | 2026-11-21 17:46:28 +0100 |
|---|---|---|
| committer | Ewann <dev.lechacal@gmail.com> | 2026-11-21 17:46:28 +0100 |
| commit | 439887f04f19f0b1f0a782c3ef60846080e4e31f (patch) | |
| tree | 8771aa170baa0c19b62602a7f2d589c8f63a620e /runtime/src/pe_loader.cpp | |
| parent | a7a1c0165838d81e78b888654944ae6e35e223a3 (diff) | |
Tests: check computed values with a small SPIR-V interpreter
tests/spirv_interp.py runs the straight-line, single-lane SPIR-V the translator
emits for branch-free shaders (binary32 rounding after every op, GLSL.std.450
subset, Function/Output variables). Unknown opcodes raise NotImplementedError.
- test_values.py: 49 value checks over the supported instruction families, with
references written in plain Python from the ISA definitions.
- test_f16_op_sel_values.py: 84 value checks for op_sel on f16 VOP3 ops (all
select combinations, neg/abs/clamp, fmac).
- listing.py: hand-written listing helper. shader_ir.parse_file treats the first
line of a listing as its header, so the helper writes one; test_f16_op_sel.py
used to lose its first instruction and now uses the helper.
None of these need llvm-mc or spirv-tools. Mutation-checked: breaking the
op_sel source index or the destination merge makes them fail.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions