shader: decode GFX10 null and ttmp scalar operands in disasm_rdna2 #264
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!264
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/264/head"
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?
@LooperSalty on GitHub · 2026-11-21 19:41 UTC · original
LooperSalty:shader/gfx10-null-ttmp-operands→main· +7 −2 · 2 files · 1 commits · merged 2026-11-21 19:56 UTCChange
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.