pixel_aot: lower the plain VOP1/VOP2 forms of bfrev, ffbh, ffbl and xnor #735
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#735
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@JB2WIN on GitHub · 2026-11-22 23:58 UTC · original
pixel_aotalready lowers the DPP spellings ofv_bfrev_b32,v_ffbh_u32,v_ffbh_i32,v_ffbl_b32andv_xnor_b32(DPP_INT32). The plain VOP1/VOP2 forms and their_e64spellings are still rejected. A form-coverage run on434fabelistsv_bfrev_b32,v_ffbh_u32,v_ffbh_i32andv_ffbl_b32(VOP1) andv_xnor_b32(VOP2) as uncovered.I'd like to take these. Proposed scope:
INTEGERtable. They reuse the exact expressions and helpers of the merged DPP path:reversebits,firstbitlow,dpp_ffbh_u32/dpp_ffbh_i32and~(a ^ b). No new semantics.clamp, modifiers and DPP/SDWA stay on their existing paths.ffbh_i32vsffbh_u32,ffblvsffbh, a dropped~in xnor, andreversebitsremoved. Plus form coverage, scanner checks and the LLVM 15 binary round trip.A search found no open PR for these forms. AI-assisted (Claude Code).
@R0Y00 on GitHub · 2026-11-23 00:26 UTC · original
v_xnor_b32is already merged in #728 with e32/e64 assembly and UINT readback. Please scope the follow-up tov_bfrev_b32,v_ffbh_u32,v_ffbh_i32andv_ffbl_b32. Reuse the existing DPP arithmetic only where the plain form has the same semantics, and keep the zero/all-ones sentinels and the signed-versus-unsigned control. The LLVM 15 round trip and independent full-width readback are the right checks.@JB2WIN on GitHub · 2026-11-23 00:58 UTC · original
Thanks. #755 is scoped to
v_bfrev_b32,v_ffbh_u32,v_ffbh_i32andv_ffbl_b32;v_xnor_b32is left to #728. It keeps the zero and all-ones sentinels and the signed-versus-unsigned control, and checks with the LLVM 15 round trip and full-width readback.@R0Y00 on GitHub · 2026-11-23 02:45 UTC · original
The scoped set is complete. #728 covered plain e32/e64
v_xnor_b32. #755 added plain e32/e64v_bfrev_b32,v_ffbh_u32,v_ffbh_i32andv_ffbl_b32, with an LLVM 15 round trip and full-width UINT readback. The zero/all-ones and signed-vs-unsigned controls are in main, and the exact #755 head passed both Windows configurations and both Linux checks.