mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 16:58:37 +00:00
SDWA src/dst selects were ignored, so 3,826 translated shaders passed spirv-val but computed wrong values. Sources are now narrowed (with sext()) before neg/abs, and results placed at dst_sel per dst_unused. GPU-checked with the new synthetic shaders in runtime/test/shaders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
390 B
NASM
14 lines
390 B
NASM
; Packed f16 FMA, integer min3/max3 and signed bitfield extract. Expected mrt0 bits: 0x48804300, 5, 7, 0xfffffffc
|
|
v_mov_b32 v0, 0x40003c00
|
|
v_mov_b32 v1, 0x44004200
|
|
v_mov_b32 v2, 0x3c003800
|
|
v_pk_fma_f16 v3, v0, v1, v2
|
|
v_mov_b32 v5, 7
|
|
v_mov_b32 v6, 0xfffffff0
|
|
v_mov_b32 v7, 5
|
|
v_min3_u32 v4, v5, v6, v7
|
|
v_max3_i32 v8, v5, v6, v7
|
|
v_bfe_i32 v9, v6, 2, 4
|
|
exp mrt0 v3, v4, v8, v9 done vm
|
|
s_endpgm
|