shader: decode GFX10 null and ttmp scalar operands in disasm_rdna2 #261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/264"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by LooperSalty on 2026-11-21T19:41:22Z.
Change
decode_s_regintools/disasm_rdna2.pyprinted scalar operand code 108 asnulland code 125 ass125. On GFX10 / RDNA 2:ttmp0-ttmp15;null;as in LLVM's gfx10 MC tests (for example,
s_waitcnt_vscnt null, 0x0encodessdst= 0x7d). The function now returnsttmpNfor 108-123 andnullfor 125.This PR is independent of #251 and of the scalar/VOP1 opcode-table PR.
Verification
python -B -m unittest tests.rdna2_tools_checkon Windows 11 26300, Python 3.12:Ran 19 tests … OK (skipped=1). The skip istest_llvm_comparison, which needsLLVM_LIB.s_sub_u32, whose opcode is already correct onmain:007d8080→s_sub_u32 s0, s0, null;006c8080→s_sub_u32 s0, s0, ttmp0.Evidence and follow-up
Operand codes cross-checked against LLVM's gfx10 MC tests and an independent decoder (
PrototypeScarlett/emu/rdna2_operands.pyin LooperSalty/AnyXboxX).Checklist
007d8080printeds125.AI-assisted (Claude Code). I reviewed the change and ran the checks above.