diff options
| author | bbareth <179921368+BBareth@users.noreply.github.com> | 2026-11-22 02:08:48 +0100 |
|---|---|---|
| committer | bbareth <179921368+BBareth@users.noreply.github.com> | 2026-11-22 02:08:48 +0100 |
| commit | bad14edbef9862652325949adaca206bfe8d60ca (patch) | |
| tree | 1e328655450af0c2d3e3e495b80a09314b77bc63 /runtime/test/gameinput_test.cpp | |
| parent | 22590c7bbcb4f35bdc902fc4db0e9c4f556f9c39 (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