tooling: decode the five SOP1 relative scalar moves #1116

Manually merged
github merged 2 commits from gh-pr/1116/head into gh-pr/1116/base 2026-11-26 22:42:50 +00:00
Owner

@⁠tedin7 on GitHub · 2026-11-24 01:14 UTC · original
tedin7:x2w-disasm-sop1-movrel → main · +46 −0 · 4 files · 2 commits · merged 2026-11-24 02:38 UTC

Change

Decode the five relative scalar moves of SOP1 in tools/disasm_rdna2.py: s_movrels_b32/b64 (0x2e, 0x2f), s_movreld_b32/b64 (0x30, 0x31) and s_movrelsd_2_b32 (0x49). The scanner recognizes the same mnemonics. Decoding only; no lowering.

Refs #938

Verification

  • python3 -B tests/rdna2_tools_check.py: Ran 107 tests, OK (skipped=10).
  • The new test test_sop1_relative_scalar_moves fails on origin/main (Ran 107 tests, FAILED failures=6) and passes with this change. Its words come from llvm-mc-19 -arch=amdgcn -mcpu=gfx1010 -show-encoding.

Evidence and follow-up

Scope is decoding and scanner recognition. The translator does not lower these forms, so there is no draw or readback. docs/experiments.md has a new section. No hardware measurement backs the descriptions. Work is AI-assisted.

Checklist

  • One behavior, no changes outside the SOP1 table and its scanner names
  • Test fails before, passes after
  • docs/experiments.md updated
**@⁠tedin7** on GitHub · 2026-11-24 01:14 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1116) `tedin7:x2w-disasm-sop1-movrel` → `main` · +46 −0 · 4 files · 2 commits · merged 2026-11-24 02:38 UTC ## Change Decode the five relative scalar moves of SOP1 in `tools/disasm_rdna2.py`: `s_movrels_b32/b64` (0x2e, 0x2f), `s_movreld_b32/b64` (0x30, 0x31) and `s_movrelsd_2_b32` (0x49). The scanner recognizes the same mnemonics. Decoding only; no lowering. Refs #938 ## Verification - `python3 -B tests/rdna2_tools_check.py`: Ran 107 tests, OK (skipped=10). - The new test `test_sop1_relative_scalar_moves` fails on origin/main (Ran 107 tests, FAILED failures=6) and passes with this change. Its words come from `llvm-mc-19 -arch=amdgcn -mcpu=gfx1010 -show-encoding`. ## Evidence and follow-up Scope is decoding and scanner recognition. The translator does not lower these forms, so there is no draw or readback. `docs/experiments.md` has a new section. No hardware measurement backs the descriptions. Work is AI-assisted. ## Checklist - [x] One behavior, no changes outside the SOP1 table and its scanner names - [x] Test fails before, passes after - [x] docs/experiments.md updated
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:42:49 +00:00
github manually merged commit 699ae547e2 into gh-pr/1116/base 2026-11-26 22:42:50 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 01:15 UTC · original · edited 2026-11-24 01:18 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T01:18:18.431134Z 92c4dde PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 01:15 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1116#issuecomment-7118910838) · edited 2026-11-24 01:18 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"92c4ddee97cd9ddcc0e17687aed000d0c5ca6732","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T01:18:18.431134Z">2026-11-24T01:18:18.431134Z</relative-time> | `92c4dde` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 02:00 UTC · original

AI-assisted. Merged origin/main to resolve conflicts with the SOPK and SOPP decoder change in tests/rdna2_tools_check.py and docs/experiments.md; both sets of decoder tests and both doc sections are kept. python3 -B tests/rdna2_tools_check.py passes locally.

**@⁠tedin7** on GitHub · 2026-11-24 02:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1116#issuecomment-7119669070) AI-assisted. Merged origin/main to resolve conflicts with the SOPK and SOPP decoder change in tests/rdna2_tools_check.py and docs/experiments.md; both sets of decoder tests and both doc sections are kept. python3 -B tests/rdna2_tools_check.py passes locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.