diff options
| author | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-22 21:02:20 +0200 |
|---|---|---|
| committer | whoalin1 <207920491+whoalin1@users.noreply.github.com> | 2026-11-28 12:03:00 +0200 |
| commit | 2d62a50a0d2c41ca58086d88c744c79e41db18aa (patch) | |
| tree | 081b2fb1b542c8213ec63be6f9f053cfc3ebc407 /runtime/src/bcpack.cpp | |
| parent | 33db04a7010e81c40a7a6a15624525aa0c4a3a58 (diff) | |
tests/semantic: run v_div_fixup_f32 through the translator, not a mock oracle (TEST-545)
tests/semantic/test_valu_div_fixup.py compared a hand-written Python model of the
fixup against itself and never imported tools/rdna2spirv.py, so it passed whatever
the translator did, and its rules had drifted from native RDNA2 (gfx1036) on six
points (NaN priority, the sign of 0/0 and inf/inf, inf(S2), the copysign of the
pass-through, NaN(S0), and the exponent-difference cutoff).
It now translates hand-written listings and asserts what the translator emits: the
pure-integer lowering's op order and classification constants, NaN(S2) above
NaN(S1) read off the dataflow, one word per measured rule through
spirv_mini_interp, and the EXEC-masked and null-destination cases. The f16 model
is gone rather than ported: the translator has no v_div_fixup_f16 lowering yet
(#2477 adds it with its own translator tests).
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions