tooling: print one VGPR for the f64-source VOP1 conversions in disasm_rdna2 #1586

Merged
vladbondarenko97 merged 1 commit from upstream-pr/1593 into main 2026-11-24 14:59:14 +00:00
vladbondarenko97 commented 2026-11-24 14:40:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by vladbondarenko97 on 2026-11-24T14:40:11Z.


Change

disasm_rdna2 printed the destination of the unextended VOP1 forms v_cvt_i32_f64, v_cvt_u32_f64 and v_cvt_f32_f64 as a VGPR pair (v[4:5]) because the mnemonic ends in _f64. The result is one dword: llvm-mc prints v4, and the VOP3 (_e64) spelling here already did. The binary64 source keeps its pair; binary64 results (v_cvt_f64_i32, v_cvt_f64_f32, v_rcp_f64) are unchanged. Refs #938.

Verification

Commit 2db1df38 on main e09b3302, macOS, Python 3.14.

  • python -B tests/rdna2_tools_check.py TestRdna2Disasm.test_vop1_f64_source_conversions_have_one_register_result: OK. With tools/disasm_rdna2.py from main: FAILED (failures=6).
  • python -B tests/rdna2_tools_check.py: Ran 142, OK (skipped=18).
  • tests/docs_links_check.py, tests/bidi_controls_check.py: OK.

Not run: the Windows build/ctest, and LLVM 15 (not installed here). The golden words come from llvm-mc 23.1.6 (-mcpu=gfx1013); the new test compares against those strings and needs no LLVM.

Evidence and follow-up

Decoder text only; nothing lowers these conversions, so there is no draw or readback. Fixtures are hand-assembled words and llvm-mc output, no game data. docs/experiments.md has a new section. A follow-up names the remaining VOP1 rounding/frexp placeholders (0x17-0x1b, 0x3c-0x41), which build on this change.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI use: Claude Code. Claude Sonnet 5.5 wrote the change, the tests and the llvm-mc sweep; Claude Opus 5.5 reviewed the diff and reran the suite. I reviewed it.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6584308013 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1593). Originally posted by [vladbondarenko97](https://github.com/vladbondarenko97) on 2026-11-24T14:40:11Z. --- ## Change `disasm_rdna2` printed the destination of the unextended VOP1 forms `v_cvt_i32_f64`, `v_cvt_u32_f64` and `v_cvt_f32_f64` as a VGPR pair (`v[4:5]`) because the mnemonic ends in `_f64`. The result is one dword: llvm-mc prints `v4`, and the VOP3 (`_e64`) spelling here already did. The binary64 source keeps its pair; binary64 results (`v_cvt_f64_i32`, `v_cvt_f64_f32`, `v_rcp_f64`) are unchanged. Refs #938. ## Verification Commit 2db1df38 on main e09b3302, macOS, Python 3.14. - `python -B tests/rdna2_tools_check.py TestRdna2Disasm.test_vop1_f64_source_conversions_have_one_register_result`: OK. With `tools/disasm_rdna2.py` from main: FAILED (failures=6). - `python -B tests/rdna2_tools_check.py`: Ran 142, OK (skipped=18). - `tests/docs_links_check.py`, `tests/bidi_controls_check.py`: OK. Not run: the Windows build/ctest, and LLVM 15 (not installed here). The golden words come from llvm-mc 23.1.6 (`-mcpu=gfx1013`); the new test compares against those strings and needs no LLVM. ## Evidence and follow-up Decoder text only; nothing lowers these conversions, so there is no draw or readback. Fixtures are hand-assembled words and llvm-mc output, no game data. `docs/experiments.md` has a new section. A follow-up names the remaining VOP1 rounding/frexp placeholders (0x17-0x1b, 0x3c-0x41), which build on this change. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI use: Claude Code. Claude Sonnet 5.5 wrote the change, the tests and the llvm-mc sweep; Claude Opus 5.5 reviewed the diff and reran the suite. I reviewed it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 15:02:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1586
No description provided.