tooling: decode the five SOP1 relative scalar moves #1109

Merged
tedin7 merged 2 commits from upstream-pr/1116 into main 2026-11-24 02:38:18 +00:00
tedin7 commented 2026-11-24 01:14:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:14:47Z.


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
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572353797 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1116). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T01:14:47Z. --- ## 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
upstream-sync closed this pull request 2026-11-24 06:46:24 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:50:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:15:00Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118910838 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1116#issuecomment-7118910838). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T01:15:00Z. --- <!-- 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>
tedin7 commented 2026-11-24 06:50:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:00:49Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119669070 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1116#issuecomment-7119669070). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:00:49Z. --- 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.
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!1109
No description provided.