tooling: decode six gfx1013 VOP1 and VOP2 opcodes #1063
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1070"
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 tedin7 on 2026-11-24T00:15:29Z.
Change
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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T00:15:41Z.
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.