upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorbbareth <179921368+BBareth@users.noreply.github.com>2026-11-22 02:08:48 +0100
committerbbareth <179921368+BBareth@users.noreply.github.com>2026-11-22 02:08:48 +0100
commitbad14edbef9862652325949adaca206bfe8d60ca (patch)
tree1e328655450af0c2d3e3e495b80a09314b77bc63 /runtime/test/gameinput_test.cpp
parent22590c7bbcb4f35bdc902fc4db0e9c4f556f9c39 (diff)
tests/spirv_interp.py: OpBitcast keeps signalling-NaN bits (#509, as #533)
u2f()/f2u() went through struct's binary32 <-> double conversion, which quiets a signalling NaN (sets bit 22), so a word in 0x7f800001.. 0x7fbfffff / 0xff800001..0xffbfffff that passed through an OpBitcast came back changed: 0xffa3a095 became 0xffe3a095. This is the second interpreter (test_values, test_f16_op_sel_values, test_f16_hw_words, test_interp_p1_p2); #533 fixed the same bug in spirv_mini_interp. Same fix: u2f() returns a float subclass that keeps the pattern and f2u() returns it; copies, selects, composites and stores pass it on, and arithmetic gives a plain float. New test_spirv_interp_bits.py checks four sNaN words through every pass-through path, OpIsNan, and that arithmetic still gives a NaN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions