shader: decode s_and_saveexec_b32, v_mac_f32, v_cvt_f32_ubyte and v_mad_f32 in disasm_rdna2 #858
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/864"
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 Holastor on 2026-11-23T14:33:18Z.
Change
Decodes common scalar and vector arithmetic/conversion opcodes in
tools/disasm_rdna2.pyfor RDNA 2 / GFX10:0x3c:s_and_saveexec_b32(Wave32 execution mask save and bitwise AND with scalar source)0x1f:v_mac_f32_e32(vector multiply-accumulate float32)0x11..0x14:v_cvt_f32_ubyte0_e32..v_cvt_f32_ubyte3_e32(extract unsigned byte 0..3 and convert to float32)0x141:v_mad_f32(three-operand non-fused float32 multiply-add)Also updates
KNOWN_RDNA2_BASE_OPCODESintools/scan_unsupported_shaders.pyto recognizes_and_saveexec_b32andv_mac_f32directly without raw fallback.Verification
python -B tests/rdna2_tools_check.py: 74/74 passed with new golden vectors covering all added instructions.tests/rdna2_tools_check.pyincludes new instructions intest_llvm_comparisonfor verification againstllvm-mc-15in Ubuntu CI.python -B tests/docs_links_check.py: passed (13 files, 172 links).python -B tests/bidi_controls_check.py: passed (696 files).python -B tests/form_coverage_check.py: passed.python -B tests/pso_readiness_check.py: passed.