tooling: scanner counts the plain binary16 e32 forms pixel_aot lowers to the low half #1080
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1087"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T00:46:32Z.
Change
scan_unsupported_shaders.pydid not count ten plain binary16 e32 forms thatpixel_aot.pyalready lowers (low 16 bits of the result only), so a shader using them was reported as unsupported. This adds scanner patterns forv_{add,sub,subrev,mul}_f16_e32,v_{floor,ceil,trunc,rndne}_f16_e32andv_cvt_f16_{i16,u16}_e32, and registers their opcodes as known. Op names and the binary16 inline-constant set are read frompixel_aot.VOP2_F16,VOP1_F16_ROUNDandINLINE_F16, so the scanner follows the translator tables.The patterns mirror the translator's operand rules: e32 src1 of the arithmetic forms is a VGPR; sources are a binary16 inline constant, 0, a 16-bit literal or a register in range; integer inline constants other than 0, source modifiers, clamp, omod and
_e64are not matched. The cvt forms take the 16-bit integer operand set ofint16_operand.Refs #839 (follow-up to the merged plain binary16 slices). Scanner only; no translator change. No overlapping open PR found (searched open and merged PRs for scanner and binary16 changes; #906 touches the scanner opcode lists for other binary16 ops and does not add these patterns).
This work is AI-assisted (Claude Code).
Verification
TestRdna2Scanner.test_low16_binary16_e32_scanner_supportintests/rdna2_tools_check.py.python3 -B tests/rdna2_tools_check.py TestRdna2Scanner.test_low16_binary16_e32_scanner_supportgives OK (1 test).origin/main(ed983c1c) fails withFalse is not true : v_add_f16_e32 v24, v18, v19.python3 -B tests/rdna2_tools_check.pygives Ran 100 tests, OK (skipped=9, the LLVM-lib-dependent ones; LLVM 15 is not installed locally).Evidence and follow-up
No new fixtures: the test uses synthetic assembly strings only. The accepted and refused lists were written from the operand rules in
pixel_aot.half16_arith_sourceandint16_operand. The_e64forms the translator also lowers without modifiers are left out of this slice. The scanner still checks syntax only; the translator decides whether a source is statically proven finite.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T00:46:42Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
c85d40eℹ️ About Codex in GitHub
Your 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.