Commit Graph

1 Commits

Author SHA1 Message Date
fb3552fdde rdna2spirv: apply src0 float modifiers after bound_ctrl zero selection (SHADER-DPP-NEG-BOUND-CTRL)
In Gen.dpp_insn, apply src0 input float modifiers (neg/abs) after the bound_ctrl
zero selection rather than before the lane shuffle. On RDNA3 hardware (measured
by @mcpeacebir-lang on an RX 7800 XT in HW-DPP-NEG-INVALID-LANE), reading an invalid
lane under bound_ctrl:1 with -src0 produces -0.0f (0x80000000) and with |src0| produces
+0.0f (0x00000000).

Adds semantic test tests/semantic/test_dpp_bound_ctrl_modifiers.py and updates
the DPP contract row in docs/design.md.

AI-assisted (Claude Code)
2026-11-25 14:55:33 +03:00