upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorx2Tweek <x2Tweek@users.noreply.github.com>2026-11-22 22:15:05 +0100
committerx2Tweek <x2Tweek@users.noreply.github.com>2026-11-22 22:15:05 +0100
commit0f8534732e7bb7ec623b928f66d0559c13f638bf (patch)
tree84c7ea24fe67cdf1c496a107e6621e1366694f66 /runtime/test/loader_test.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
test(semantic): add translation test for v_rsq_f32
Adds tests/semantic/test_alu_rsq_f32.py — semantic translation tests for RDNA2 32-bit inverse square root v_rsq_f32, translating a synthetic pixel-shader listing through rdna2spirv.translate() -> SPIR-V -> spirv_mini_interp and comparing against a plain-Python reference 1.0 / math.sqrt(x) for finite positive x. Covers exact values (rsq(1)=1, rsq(4)=0.5, rsq(16)=0.25, rsq(0.25)=2), rsq(2) with 1e-6 tolerance, rsq(+inf) -> +0, reference comparison across varied positive bit patterns, 50 randomized positive cases, and a negative control. No translator/runtime changes — pure test coverage. Standard library only; no GPU; no game data. 6 passed, 64 subtests; compileall clean. Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions