upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorevilclanker9000 <45567075+evilclanker9000@users.noreply.github.com>2026-11-23 20:54:21 +0100
committerevilclanker9000 <45567075+evilclanker9000@users.noreply.github.com>2026-11-23 20:54:36 +0100
commit402ec6ac61a93afdecef3a3cd504557f966bba40 (patch)
tree76aae261647419affe88f53d6f18deb2057d4c21 /runtime/src/bcpack.cpp
parent867d922f09b86583859796a174df89555fb32da8 (diff)
rdna2spirv: a two-dword f64 literal is the whole binary64 constant
"f64_source_words" and the rounding-op reader applied the one-literal-dword rule (bits 63:32, bits 31:0 zero) to every literal the parser flags "f64_literal". LLVM prints the two-dword literal of an f64 instruction as one 16-digit "0x" value in the gfx1013 listings the translator reads, so "v_rsq_f64 v[8:9], 0x07b1b5527cbdbe7e" became the rsq of 0x7cbdbe7e_00000000 ("22740052 21877845" instead of "bf95374e 5c0e6ad8"), and "v_trunc/ceil/rndne/floor_f64" refused such a literal as "Unsupported: <op> literal". The one-dword rule now applies only to a literal that fits a 32-bit word; a wider one is split into its two words, as "v_ldexp_f64"'s reader already did. "python -I tools/f64_diff.py --sweep --programs 0" (its CPU reference) on main and then this branch: 7 match, 1 mismatch of 12 -> 43 match, 0 mismatch of 47 (35 operand forms that were refused now translate). "tests/semantic/test_f64_literal_whole.py" against main"'s" "tools/" (LEONIDA_TOOLS_DIR): 4 failures, 4 errors; with the change: OK. Windows 11, Python 3.12.10, translator oracle only (no GPU, no game files).
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions