upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorJARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>2026-11-24 10:29:17 +0000
committerJARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com>2026-11-24 10:29:17 +0000
commit450cd810545937fb9880b486b7bbf5a8ae2e37b1 (patch)
treebe2f6e91e659aa54149018b1c57442eb1816d2bb /runtime/test/cpp_unwind_test.cpp
parent21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff)
rdna2_decode: align MIMG addr, atomic TFE/cmpswap, and r128 widths with LLVM
Cross-checking tools/rdna2_decode.py against all 291 GFX10/GFX1030 image_* vectors in LLVM's disassembler suite (gfx10_mimg.txt, gfx10_mimg_features.txt, gfx1030_new.txt) found 72 mismatches across three areas: 1. _mimg_addr_count(): - Handle a16 on image_bvh_intersect_ray (8 VGPRs) and image_bvh64_intersect_ray (9 VGPRs), and on image_get_lod. - Stop substring-matching _l inside image_msaa_load, _b inside image_{load,store}_by{2,4}, and _c/_d inside image_sample_*cd*. - Include the mip VGPR for all *_mip* load/store variants (image_load_mip_pck, image_load_mip_pck_sgn, image_store_mip_pck, etc.). - Parse sample/gather modifiers as underscore-delimited tokens so _cl and _o before _g16 are seen, and pack _g16 gradients as alignTo<2>(grad_coords) matching LLVM AMDGPU::getAddrSizeMIMGOp. - Pack (coords + lod/cl/mip) under a16 as (packable + 1) // 2 so odd-coord dims (1D/3D/2D_ARRAY/CUBE) do not overcount by 1 VGPR. 2. _mimg_data_count(): - Add +1 VGPR for tfe on image_atomic_* instead of returning early. - Return 2 VGPRs for image_atomic_{f,}cmpswap with dmask:0x1 (LLVM has no 1-VGPR cmpswap variant). 3. MIMG rsrc_w: - Keep 8 SGPRs (SReg_256_XNULL) for non-BVH MIMG instructions even with r128; only image_bvh*_intersect_ray use 4 SGPRs (SReg_128_XNULL). All 291/291 LLVM GFX10/GFX1030 MIMG vectors now decode with 0 mismatches. AI-assisted: yes (JARVIX: Antigravity + DeepSeek V4 Flash + NVIDIA NIM Nemotron-3.5-Lightning & Nemotron-3-Ultra-550B).
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions