tooling: decode six gfx1013 VOP1 and VOP2 opcodes #1070
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!1070
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1070/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?
@tedin7 on GitHub · 2026-11-24 00:15 UTC · original
tedin7:x2w-disasm-gfx1013-vop12→main· +39 −0 · 2 files · 1 commits · merged 2026-11-24 00:34 UTCChange
Refs #938. Add six gfx1013 e32 mnemonics to the Python disassembler opcode tables. VOP1 gains
v_movreld_b32,v_movrels_b32,v_movrelsd_b32andv_movrelsd_2_b32. VOP2 gainsv_fmac_f16andv_ldexp_f16. The production diff is confined toVOP1_OPSandVOP2_OPSin the shared decoder.Verification
Linux x86-64 (Debian 13), commit
389fe728, negative control ond33845b9with the new golden test.python3 -B tests/rdna2_tools_check.py -k test_vop1_vop2_e32_gfx1013against the base decoder reported six failing subtests, one per fallback mnemonic.LLVM_LIB=libLLVM.so.19.1 LLVM_MC=llvm-mc-19 LLVM_OBJCOPY=llvm-objcopy-19 python3 -B tests/rdna2_tools_check.py -k test_vop1_vop2_e32passed both tests with LLVM 19.1.7. All six instructions round-tripped byte for byte (24 bytes).llvm-mc-19 -triple=amdgcn-amd-amdhsa -mcpu=gfx1013 -show-encodingon the six assembly lines printed the same six words.LLVM 15.0.6 was extracted locally under
out/. Thebuild-a-turnowrapper was used for the three LLVM 15 checks.rdna2_tools_check.pypassed all 99 tests with LLVM 15. Both binary checks andpso_readiness_check.pyexited 0. With LLVM disabled, 90 tests passed and the nine LLVM-only tests were skipped.git diff --checkpassed.Evidence and follow-up
The six register-only instructions are original synthetic fixtures contributed under the repository's MIT license. The round-trip check compares the Python output with LLVM's disassembly of the same bytes and checks that reassembly reproduces those bytes. This is decoder coverage.
Checklist
AI-assisted.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 00:15 UTC · original · edited 2026-11-24 00:19 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
389fe72ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.