fix: bring the Rust RDNA 2 reference interpreter back to parity with the Python model #344

Closed
LooperSalty wants to merge 9 commits from upstream-pr/344 into rust/full
LooperSalty commented 2026-11-26 10:33:17 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T10:33:17Z.


Brings crates/anyxboxx-rdna2-ref back to parity with the Python reference interpreter after main (Neptune) was merged into rust/full. These are the 5 tests/test_rdna2_ref_parity.py failures that turn #285's pytest job red.

Changes (9 commits, written by Codex)

  • scalar cache hints, scalar halfword pack instructions
  • packed integer VOP3P, VOP3 integer clamp, 16-bit integer comparisons
  • d16 typed buffer accesses
  • inline floating constants read at 64-bit width
  • scalar mask writes beyond the register file refused
  • SDWA output modifiers on integer results refused

Test plan

  • ANYXBOXX_REQUIRE_RUNTIME=1 pytest tests/test_rdna2_ref_parity.py: 36 passed (release build, run locally)
  • cargo test of the two RDNA 2 crates: 125 passed (Codex run)
  • CI green
  • after merge, re-run #285's CI

Known gap: a random sweep still finds 274 wave32/64 cases where Rust refuses an instruction that Python executes. Encoding coverage is still incomplete, and that sweep is not part of the suite.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6624710888 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/344). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T10:33:17Z. --- Brings `crates/anyxboxx-rdna2-ref` back to parity with the Python reference interpreter after `main` (Neptune) was merged into `rust/full`. These are the 5 `tests/test_rdna2_ref_parity.py` failures that turn #285's pytest job red. ## Changes (9 commits, written by Codex) - scalar cache hints, scalar halfword pack instructions - packed integer VOP3P, VOP3 integer clamp, 16-bit integer comparisons - d16 typed buffer accesses - inline floating constants read at 64-bit width - scalar mask writes beyond the register file refused - SDWA output modifiers on integer results refused ## Test plan - [x] `ANYXBOXX_REQUIRE_RUNTIME=1 pytest tests/test_rdna2_ref_parity.py`: 36 passed (release build, run locally) - [x] `cargo test` of the two RDNA 2 crates: 125 passed (Codex run) - [ ] CI green - [ ] after merge, re-run #285's CI Known gap: a random sweep still finds 274 wave32/64 cases where Rust refuses an instruction that Python executes. Encoding coverage is still incomplete, and that sweep is not part of the suite. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
chatgpt-codex-connector[bot] commented 2026-11-26 10:33:29 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T10:33:29Z.


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-26T10:35:21.774626Z 855c574 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:LooperSalty/AnyXboxX:comment:7189524016 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/344#issuecomment-7189524016). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T10:33:29Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"855c5749ec10979d1ddc4f0bb0bc8950e11b7e9c","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-26T10:35:21.774626Z">2026-11-26T10:35:21.774626Z</relative-time> | `855c574` | 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>

Pull request closed

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
LooperSalty/AnyXboxX!344
No description provided.