mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 18:58:37 +00:00
Five pixel fixtures, inputs from memory, for v_add_lshl_u32, v_and_or_b32, v_xor3_b32, v_bfi_b32, v_bfm_b32, v_bfrev_b32, v_mad_i32_i24, v_mul_hi_u32_u24, v_max3_u32, v_min3_i32 and v_max/min_i32/u32. Operands cover 24-bit sign extension with garbage in bits 24-31, shifts and field sizes of 32 and more, and signed vs unsigned min/max. Expected words are derived in the .asm headers; the same shaders are semantic fixtures. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
499 B
ArmAsm
18 lines
499 B
ArmAsm
; ps_vint_bits test fixture generated by tests/semantic/regen_fixtures.py from runtime/test/shaders/ps_vint_bits.asm
|
|
s_buffer_load_dwordx8 s[4:11], s[0:3], 0
|
|
s_waitcnt lgkmcnt(0)
|
|
v_mov_b32_e32 v0, s4
|
|
v_mov_b32_e32 v1, s5
|
|
v_mov_b32_e32 v2, s6
|
|
v_mov_b32_e32 v3, s7
|
|
v_mov_b32_e32 v4, s8
|
|
v_mov_b32_e32 v5, s9
|
|
v_mov_b32_e32 v6, s10
|
|
v_mov_b32_e32 v7, s11
|
|
v_bfm_b32 v8, v7, v2
|
|
v_bfm_b32 v9, v2, v1
|
|
v_bfrev_b32_e32 v10, v6
|
|
v_bfrev_b32_e32 v11, v0
|
|
exp mrt0 v8, v9, v10, v11 done vm
|
|
s_endpgm
|