Repository navigation
Conversation
AI Driven - Specs: AMD Ryzen 7 9850X3D | NVIDIA GeForce RTX 5070 Ti | 16 GB DDR5 | Windows 11 Pro | Model: 6.2 Astra Medium
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
AI Driven - Specs: AMD Ryzen 7 9850X3D | NVIDIA GeForce RTX 5070 Ti | 16 GB DDR5 | Windows 11 Pro | Model: 6.2 Astra Medium
AI Driven - Specs: AMD Ryzen 7 9850X3D | NVIDIA GeForce RTX 5070 Ti | 16 GB DDR5 | Windows 11 Pro | Model: 6.2 Astra Medium
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74cb16c7e4
ℹ️ 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".
| # of the result into its dst_sel, so each form is its e32 operation on the extracted words, placed like a move. | ||
| SDWA_INT = { | ||
| **{op: INTEGER[op] for op in ("and_b32", "or_b32", "xor_b32", "xnor_b32", "not_b32", | ||
| "bfrev_b32", "ffbl_b32", "ffbh_u32", "ffbh_i32", |
There was a problem hiding this comment.
Update the public SDWA capability documentation
These four newly accepted forms change the translator's public capability, but docs/experiments.md:5639 still lists fifteen supported SDWA integer operations, says other integer SDWA spellings are refused, and describes four fixture programs rather than the new five. The published support boundary and reproduction description therefore contradict the tool. Update that section with the new bit-scan forms and their validation limits, keeping the existing GPU results distinct from the still-unverified pixel draws. Root AGENTS.md explicitly requires a README or experiment-documentation update when a public capability changes.
AGENTS.md reference: AGENTS.md:L191-L192
Useful? React with 👍 / 👎.
AI Driven - Specs: AMD Ryzen 7 9850X3D | NVIDIA GeForce RTX 5070 Ti | 16 GB DDR5 | Windows 11 Pro | Model: 6.2 Astra Medium
tedin7
left a comment
There was a problem hiding this comment.
Looks good overall. Reviewed the SDWA bit-scan and 24-bit multiply lowering in tools/pixel_aot.py and the tests in tests/pixel_aot_check.py, tests/form_coverage_check.py, and tests/rdna2_tools_check.py at 0bad6806e50a333a90984daee51139c83fdb124b.
Semantic & Edge-Case Review
- Helper emission & operand handling: Adding
bfrev_b32,ffbl_b32,ffbh_u32,ffbh_i32,mul_i32_i24,mul_u32_u24,mul_hi_i32_i24, andmul_hi_u32_u24toSDWA_INTand updatinghelpersfrom bothINTEGER_HELPERSandMUL24_HELPERSensuresdpp_ffbh_u32,dpp_ffbh_i32,mul24_u32,mul24_i32,mul24_hi_u32, andmul24_hi_i32are emitted when used in SDWA form. - SDWA source/destination modifiers:
sdwa_source()andsdwa_dest()applyBYTE_*/WORD_*/DWORDextraction with optionalsext()andUNUSED_PAD/UNUSED_PRESERVEplacement, whileSDWA_INT_OPERANDScontinues to rejectclamp,UNUSED_SEXT, inline constants, and untrackedUNUSED_PRESERVEdestinations. - Negative & binary coverage:
SDWA_INT_WRONGcovers lostsext, unsigned-for-signed high product, ignored byte selection/placement, and zero-vs-sentinel (-1) onv_ffbh_u32_sdwa;check_controls()andTestRdna2Scannerverifyclamprejection.
Verification
- Linux (LLVM 19):
python3 -B tests/pixel_aot_check.py,python3 -B tests/rdna2_tools_check.py(141 tests, 18 skipped),python3 -B tests/docs_links_check.py,python3 -B tests/bidi_controls_check.py— passed.llvm-mc-19/llvm-objcopy-19/libLLVM-19.sobinary round-trip formultiply24andbit_scanSDWA groups — passed.
- Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP):
- Debug (
--preset dev):offscreen_checkbuilt (3.64s),ctest --preset dev -R '^pixel_aot_sdwa_integer_'2/2 passed (1.97s). - Release
/O2(--preset release):offscreen_checkbuilt (1.00s),ctest --preset release -R '^pixel_aot_sdwa_integer_'2/2 passed (1.88s). tests/pixel_aot_check.py(13.4s) andtests/form_coverage_check.py(42.9s) — passed.
- Debug (
AI-assisted; commands listed were executed locally.
tedin7
left a comment
There was a problem hiding this comment.
Review at head 0bad6806e50a333a90984daee51139c83fdb124b. Verdict: not merging yet. Two blockers that are not code defects.
Executed locally:
git merge-tree --write-tree --name-only origin/main HEAD: clean, no conflicts.gh pr checks 1572: Windows build and test, Linux Python checks, and gfx1013 fixtures all pass.git diff --stat origin/main...HEAD: 4 files, +52/-6, all undertools/andtests/.- Read the full diff. The lowering reuses the existing integer and 24-bit multiply helpers, and the new tests carry negative controls. The earlier review on this head covers the Linux and Win2025 runs.
safe-merge-check: G6 and G7 block.
Findings:
- P1 (open thread, tools/pixel_aot.py):
docs/experiments.mdstill lists fifteen supported SDWA integer operations and says other integer SDWA spellings are refused. The eight newly accepted forms make that text wrong. Please update the capability note and fixture counts. - Competing work: #1612 (SDWA lowering, same area) is open. Please sequence the two so only one lands the shared SDWA table change.
No logic defects found in the lowering itself. Merge held until the docs P1 thread is resolved and #1612 is sequenced.
AI-assisted; commands listed were executed locally.
|
@itzJaack could you rebase this branch onto current GitHub reports head Files that conflict with current
Commands run locally: Once it is rebased and CI is green it will be re-checked right away. AI-assisted; commands listed were executed locally. |
|
Possible duplicate: current
Commands executed:
I did not push to this branch. @itzJaack, if you see a form that main does not cover, please reduce the PR to that delta; otherwise it can be closed. Leaving the decision to @R0Y00. AI-assisted; commands listed were executed locally. |
R0Y00
left a comment
There was a problem hiding this comment.
Main now contains all eight lowering forms through #2550 (1151986). I integrated current main locally and ran the form coverage suite. The old broad SDWA table takes precedence over the newer extended handler, and the existing UNUSED_SEXT refusal control for v_bfrev_b32 fails. Please keep the main lowering and its controls. If your independent bit-scan or signed/unsigned multiply vectors add coverage, a test-only update can retain those vectors and credit without registering the forms in both handlers. #1612 is closed, so the remaining overlap is #2550.
Translate eight additional SDWA integer forms. The first group covers bit reversal and low, high unsigned, and high signed bit scans. The second group covers signed and unsigned 24-bit products, both low and high halves. Both reuse the existing instruction semantics and SDWA source selection and destination placement. The draw fixtures exercise sign extension, the no-bit sentinel, destination preservation, and signed versus unsigned high products.
Verification at 9b68efd
python -B tests/pixel_aot_check.pypassed locally on Windows. The SDWA integer fixture now exercises 23 forms.ps_6_0.pixel_aot_sdwa_integer_CTest cases.AI Driven - Specs: AMD Ryzen 7 9850X3D | NVIDIA GeForce RTX 5070 Ti | 16 GB DDR5 | Windows 11 Pro | Model: 6.2 Astra Medium