Files
mandy/tests/semantic/fixtures/disasm/cs_dpp_cmpx.s
OreoFR c5f1807515 rdna2spirv: translate v_cmpx in DPP form (SHADER-VOPCX-DPP)
Extend #957's DPP VOPC compare to v_cmpx: the same lane selection, with the
result written to EXEC. v_cmpx prints no destination, so src0 is its first
operand. Only the forms where every lane writes its bit are taken, as for
v_cmp. 78 pipeline-library pixel shaders of 1.0.2.1 were refused for it; all
78 now translate and pass spirv-val.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:00 +01:00

16 lines
585 B
ArmAsm

; cs_dpp_cmpx test fixture generated by tests/semantic/regen_fixtures.py from runtime/test/shaders/cs_dpp_cmpx.asm
v_mbcnt_lo_u32_b32 v0, -1, 0
v_add_nc_u32 v7, -4, v0
v_cvt_f32_i32 v1, v7
v_mov_b32 v6, 0
s_mov_b32 s10, exec_lo
v_cmpx_gt_f32_dpp v1, v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_mov_b32 v6, 1
s_mov_b32 exec_lo, s10
v_cmpx_gt_f32_dpp v1, -v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_add_nc_u32 v6, 2, v6
s_mov_b32 exec_lo, s10
v_lshlrev_b32 v2, 2, v0
buffer_store_dword v6, v2, s[0:3], 0 offen
s_endpgm