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:10:48 +0100
committerx2Tweek <x2Tweek@users.noreply.github.com>2026-11-22 22:10:48 +0100
commitef9be630c7cd1118ac0589718b9282103fd4be1e (patch)
tree2f3e71fabf0d18ba604a10dde97d46f7cf8ed7b0 /runtime/test/loader_test.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
test(semantic): add translation test for v_sqrt_f32
Adds tests/semantic/test_alu_sqrt_f32.py — semantic translation tests for RDNA2 32-bit square root v_sqrt_f32, translating a synthetic pixel-shader listing through rdna2spirv.translate() -> SPIR-V -> spirv_mini_interp and comparing against a plain-Python reference math.sqrt(x) for finite non-negative x. Covers exact squares (0, 1, 4, 9, 16, 25, 0.25), sqrt(2) with 1e-6 tolerance, sqrt(+inf) -> +inf, reference comparison across varied non-negative bit patterns, 50 randomized non-negative cases, and a negative control. No translator/runtime changes — pure test coverage. Standard library only; no GPU; no game data. 6 passed, 68 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