feat: RDNA 2 de Lewandox réunies (#116, #119, #118) #123

Manually merged
github merged 12 commits from gh-pr/123/head into gh-pr/123/base 2026-11-26 05:32:47 +00:00
Owner

@⁠LooperSalty on GitHub · 2026-11-24 10:09 UTC · original
LooperSalty:integration/lewandox-3 → main · +1279 −33 · 20 files · 12 commits · merged 2026-11-24 10:14 UTC

Réunit les trois PR de @⁠Lewandox validées en revue, avec ses commits intacts, pour les fusionner ensemble malgré les conflits du compteur de tests du README (8 langues).

  • #116 : contrôle de flux structuré dans le recompilateur HLSL (boucles while, gardes if, repli switch (pc) pour les graphes irréductibles), comparé à l'interpréteur sur GPU (losange if/else, graphe irréductible, boucles imbriquées).
  • #119 : parité ALU 32 bits interpréteur/HLSL, v_mul_legacy_f32 et v_perm_b32 (table des sélecteurs conforme à l'ISA RDNA 2 : 8/9 signe de S1 bits 15/31, 10/11 signe de S0, 12 → 0x00, 13+ → 0xFF).
  • #118 : SDWA, DPP16 et DPP8 dans l'interpréteur et le recompilateur ; clamp SDWA sur entier refusé (Untranslatable) ; test GPU v_cvt_f32_i32 avec extension de signe.

Seuls conflits : la ligne du compteur de tests des 8 README, mise à la valeur réelle (578 tests collectés). Tests rdna2 et README : 221 passés ; ruff propre. #117 reste ouverte (changements demandés).

Ferme #116, #119, #118.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL6fhkpeG9ByE1rJxrt

**@⁠LooperSalty** on GitHub · 2026-11-24 10:09 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/123) `LooperSalty:integration/lewandox-3` → `main` · +1279 −33 · 20 files · 12 commits · merged 2026-11-24 10:14 UTC Réunit les trois PR de @⁠Lewandox validées en revue, avec ses commits intacts, pour les fusionner ensemble malgré les conflits du compteur de tests du README (8 langues). - **#116** : contrôle de flux structuré dans le recompilateur HLSL (boucles `while`, gardes `if`, repli `switch (pc)` pour les graphes irréductibles), comparé à l'interpréteur sur GPU (losange if/else, graphe irréductible, boucles imbriquées). - **#119** : parité ALU 32 bits interpréteur/HLSL, `v_mul_legacy_f32` et `v_perm_b32` (table des sélecteurs conforme à l'ISA RDNA 2 : 8/9 signe de S1 bits 15/31, 10/11 signe de S0, 12 → 0x00, 13+ → 0xFF). - **#118** : SDWA, DPP16 et DPP8 dans l'interpréteur et le recompilateur ; clamp SDWA sur entier refusé (Untranslatable) ; test GPU `v_cvt_f32_i32` avec extension de signe. Seuls conflits : la ligne du compteur de tests des 8 README, mise à la valeur réelle (578 tests collectés). Tests rdna2 et README : 221 passés ; ruff propre. #117 reste ouverte (changements demandés). Ferme #116, #119, #118. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL6fhkpeG9ByE1rJxrt
# Conflicts:
#	README.md
#	docs/i18n/README.de.md
#	docs/i18n/README.es.md
#	docs/i18n/README.fr.md
#	docs/i18n/README.it.md
#	docs/i18n/README.ja.md
#	docs/i18n/README.pt-BR.md
#	docs/i18n/README.zh-CN.md
# Conflicts:
#	README.md
#	docs/i18n/README.de.md
#	docs/i18n/README.es.md
#	docs/i18n/README.fr.md
#	docs/i18n/README.it.md
#	docs/i18n/README.ja.md
#	docs/i18n/README.pt-BR.md
#	docs/i18n/README.zh-CN.md
# Conflicts:
#	README.md
#	docs/i18n/README.de.md
#	docs/i18n/README.es.md
#	docs/i18n/README.fr.md
#	docs/i18n/README.it.md
#	docs/i18n/README.ja.md
#	docs/i18n/README.pt-BR.md
#	docs/i18n/README.zh-CN.md
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:32:45 +00:00
github manually merged commit 60d1599d51 into gh-pr/123/base 2026-11-26 05:32:47 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 10:09 UTC · original · edited 2026-11-24 10:12 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-24T10:12:07.418101Z 60d1599 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 10:09 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/123#issuecomment-7128392409) · edited 2026-11-24 10:12 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"60d1599d5126242a6ed01dfb6623f694ac875941","has_any_findings":true,"has_unresolved_findings":true,"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-24T10:12:07.418101Z">2026-11-24T10:12:07.418101Z</relative-time> | `60d1599` | 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>
@ -0,0 +195,4 @@
src_lane = (lane & ~7) | sels[lane & 7]
if not fi and not ((exec_mask >> src_lane) & 1):
continue
a = src0_snap[src_lane]
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 10:12 UTC · original

P2 Badge Substitute zero for inactive DPP8 sources instead of skipping writes

When an active destination lane selects an inactive source lane with fi=0, DPP8 must execute the operation with source 0 set to zero, not preserve the destination (LLVM GFX10 documentation). For example, reversing an eight-lane group with lane 7 inactive and destination lane 0 initialized to 888 currently leaves 888 after v_mov_b32, rather than writing zero. _hlsl_dpp8 repeats the same mistake in its write condition, so interpreter/GPU parity tests cannot detect it, and the new interpreter test explicitly expects the incorrect result. Substitute zero and still execute the operation in both implementations.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 10:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/123#discussion_r4678443048) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Substitute zero for inactive DPP8 sources instead of skipping writes** When an active destination lane selects an inactive source lane with `fi=0`, DPP8 must execute the operation with source 0 set to zero, not preserve the destination ([LLVM GFX10 documentation](https://releases.llvm.org/13.0.0/docs/AMDGPUModifierSyntax.html#amdgpu-synid-fi8)). For example, reversing an eight-lane group with lane 7 inactive and destination lane 0 initialized to 888 currently leaves 888 after `v_mov_b32`, rather than writing zero. `_hlsl_dpp8` repeats the same mistake in its write condition, so interpreter/GPU parity tests cannot detect it, and the new interpreter test explicitly expects the incorrect result. Substitute zero and still execute the operation in both implementations. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -0,0 +88,4 @@
return (row_base + r - n, True) if r >= n else (lane, False)
if 0x121 <= ctrl <= 0x12F:
n = ctrl & 0xF
return row_base + ((r + n) & 15), True
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 10:12 UTC · original

P2 Badge Reverse the source-lane offset for row-right rotations

For row_ror:n, the source lane must be (r - n) & 15; adding n implements a left rotation instead of the documented right rotation (LLVM GFX10 documentation). With source lanes containing 0 through 15, row_ror:1 currently produces [1, 2, ..., 15, 0], whereas it should produce [15, 0, ..., 14]. _dpp16_lane_expr in the HLSL translator uses the same addition, so both execution paths silently return the same incorrect permutation. Change both calculations to subtract the rotation distance.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 10:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/123#discussion_r4678443057) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Reverse the source-lane offset for row-right rotations** For `row_ror:n`, the source lane must be `(r - n) & 15`; adding `n` implements a left rotation instead of the documented right rotation ([LLVM GFX10 documentation](https://releases.llvm.org/13.0.0/docs/AMDGPUModifierSyntax.html#amdgpu-synid-dpp16-ctrl)). With source lanes containing 0 through 15, `row_ror:1` currently produces `[1, 2, ..., 15, 0]`, whereas it should produce `[15, 0, ..., 14]`. `_dpp16_lane_expr` in the HLSL translator uses the same addition, so both execution paths silently return the same incorrect permutation. Change both calculations to subtract the rotation distance. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 10:12 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60d1599d51

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 10:12 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/123#pullrequestreview-6037318601) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `60d1599d51` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.