upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
diff options
context:
space:
mode:
authorwhoalin1 <207920491+whoalin1@users.noreply.github.com>2026-11-25 08:22:09 +0200
committerMan Alin <whoalin414@gmail.com>2026-11-30 22:22:13 +0000
commit1725e0818a8406c3e21457d1520755bf2d880a52 (patch)
treee049e6a57be0e0f9431704a8a2e22f61c4616358 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parent51b0b9d34095cb2441fc50204612313a3d592370 (diff)
translator: gate mask-word gathers on EXEC coverage; scalar mask number reads
Review fixes for the mask-as-data change: - The wave-mask gather is a group op over the lanes EXEC leaves active, and drivers differ on whether lanes EXEC has off still vote: NVIDIA, AMD and KosmicKrisp return the whole subgroup's bits, MoltenVK's ballot/reduce saw only the lanes a narrowed EXEC left on and produced the EXEC value instead of the frozen mask word (cs_mask_vgpr_exec). mask_word_read_ok now gathers only when a CFG must-analysis (mark_exec_state) proves every lane that can hold a set bit of the mask is EXEC-active at the read: each EXEC half is tracked as clean, a constant mask, or an unknown narrowing (s_mov/s_cselect resolve constants, saved-EXEC aliases and unchanged EXEC, so the common restore idioms still gather), and mask_exec_sigs records every EXEC state seen while each mask register held a mask. Unproven reads keep this lane's 0 / ~0 bit, the pre-change answer. - Scalar number ops read a lane mask operand as data too (MASK_NUMBER_READERS, #1043's NUMBER_READERS): s_add_u32 s20, s10, K after v_cmp wrote s10 yields the wave's mask word, while mask moves and mask logic ops keep this lane's bit for the saveexec idioms. - wave64_emulate_opt treats ins["mask_words"] (a mask read that will gather) as a cross-lane exchange for the lane-local fold planner and barrier scheduler, covering the scalar readers as well. - test_slot67_operand_forms' expectedFailure comes off: the packed vcc_hi word now reaches the data read. Co-Authored-By: Devin <noreply@cognition.ai>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions