upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorEwann <dev.lechacal@gmail.com>2026-11-21 17:46:28 +0100
committerEwann <dev.lechacal@gmail.com>2026-11-21 17:46:28 +0100
commit439887f04f19f0b1f0a782c3ef60846080e4e31f (patch)
tree8771aa170baa0c19b62602a7f2d589c8f63a620e /runtime/src/main.cpp
parenta7a1c0165838d81e78b888654944ae6e35e223a3 (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/main.cpp')
0 files changed, 0 insertions, 0 deletions