tooling: sync scanner with the plain binary16 e64 forms #1148

Merged
tedin7 merged 2 commits from upstream-pr/1155 into main 2026-11-24 03:19:36 +00:00
tedin7 commented 2026-11-24 01:56:37 +00:00 (Migrated from github.com)

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


Make the scanner agree with the translator on the plain binary16 _e64 forms.

  • tools/scan_unsupported_shaders.py: accept the e64 spellings of v{add,sub,subrev,mul}f16 and v{floor,ceil,trunc,rndne}_f16 without modifiers, clamp or output modifiers. The e64 forms of v_cvt_f16{i16,u16} and v_fract_f16 stay unsupported.
  • tests/rdna2_tools_check.py: test_binary16_e64_scanner_translator_agreement runs about 50 _e64 forms through pixel_aot.lower and requires the scanner to agree on each (40 accepted, 33 refused). It fails on main.
  • docs/experiments.md: one paragraph.

Recognition only; no lowering changed. Checked locally with LLVM 19; the CI Ubuntu job covers LLVM 15.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572845602 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1155). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T01:56:37Z. --- Make the scanner agree with the translator on the plain binary16 _e64 forms. - tools/scan_unsupported_shaders.py: accept the _e64 spellings of v_{add,sub,subrev,mul}_f16 and v_{floor,ceil,trunc,rndne}_f16 without modifiers, clamp or output modifiers. The _e64 forms of v_cvt_f16_{i16,u16} and v_fract_f16 stay unsupported. - tests/rdna2_tools_check.py: test_binary16_e64_scanner_translator_agreement runs about 50 _e64 forms through pixel_aot.lower and requires the scanner to agree on each (40 accepted, 33 refused). It fails on main. - docs/experiments.md: one paragraph. Recognition only; no lowering changed. Checked locally with LLVM 19; the CI Ubuntu job covers LLVM 15. AI-assisted.
upstream-sync closed this pull request 2026-11-24 06:46:34 +00:00
tedin7 commented 2026-11-24 06:50:08 +00:00 (Migrated from github.com)

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


Merged origin/main into this branch to clear the conflict in docs/experiments.md and tests/rdna2_tools_check.py (both sides kept: the new fmac/ldexp section and this scanner-sync section; the test docstring now says twelve e32 forms). python3 -B tests/rdna2_tools_check.py: 110 tests OK (10 skipped). No force push. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7119889542 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1155#issuecomment-7119889542). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:13:30Z. --- Merged origin/main into this branch to clear the conflict in `docs/experiments.md` and `tests/rdna2_tools_check.py` (both sides kept: the new fmac/ldexp section and this scanner-sync section; the test docstring now says twelve e32 forms). `python3 -B tests/rdna2_tools_check.py`: 110 tests OK (10 skipped). No force push. AI-assisted.
chatgpt-codex-connector[bot commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T02:54:04Z.


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-24T02:56:19.916688Z abe00ca Draft marked ready
ℹ️ 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:7120583755 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1155#issuecomment-7120583755). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T02:54:04Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"abe00ca2aba4e35f542d6752d288bc928f130f25","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-24T02:56:19.916688Z">2026-11-24T02:56:19.916688Z</relative-time> | `abe00ca` | Draft marked ready | <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>
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!1148
No description provided.