shader: lower 8 ternary integer ALU instructions in pixel_aot (VOP3) #760
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/766"
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 MrSkelee on 2026-11-23T01:48:10Z.
Lowers 8 ternary 32-bit integer and bitwise vector ALU instructions in
tools/pixel_aot.py(VOP3):v_add3_u32:(src0 + src1 + src2)v_or3_b32:(src0 | src1 | src2)v_xor3_b32:(src0 ^ src1 ^ src2)v_and_or_b32:((src0 & src1) | src2)v_xad_u32:((src0 ^ src1) + src2)v_lshl_or_b32:((src0 << (src1 & 31)) | src2)v_lshl_add_u32:((src0 << (src1 & 31)) + src2)v_add_lshl_u32:((src0 + src1) << (src2 & 31))Highlights
_e32encodings, out-of-range registers (> v255), and float modifiers (abs,-,clamp).check_binary()for LLVM 15 assembly and disassembly validation.check_vop3_ternary_int_drawstesting 60 parameter cases across two groups with aliased destination/source registers, 1-bit mutation detection, and negative control verification.Verification