Files
mandy/runtime/test/shaders/ps_ops2.asm
NotRexed bd2dd1c874 Translator: compute shaders, LDS, wave-uniform branches, typed image stores; all VS/PS failure groups
- Compute: FSSM word 0x138 is COMPUTE_PGM_RSRC2 (user SGPRs, workgroup-id enables, thread-id VGPRs,
  LDS size), 0x13C..0x144 the group size; checked against 2,689 CS. GPU-checked with vk_compute_test.
- LDS as a Workgroup array (reads/writes/read2/write2/st64/sub-dword/atomics/cmpst), ds_bpermute,
  s_barrier as a workgroup control barrier.
- s_cbranch_vccz/vccnz/execz/execnz decided wave-wide (OpGroupNonUniformAny); v_cmp writes 0 for
  inactive lanes. GPU-checked.
- image_store for 2D/2D array/3D with float/uint/sint views picked from the T# FORMAT at run time.
- Raw barycentric reads via BaryCoordKHR (321 PS), POPS via fragment-shader interlock, image_sample_o
  offsets, fma_f16 op_sel, 64-bit v_cmpx, vcc_lo scalar loads, s_addk to specials, undeclared vertex
  components, normalized-encoding re-anchoring, array image_get_lod/gather4_lz, image_sample_l LOD on
  arrays (was reading the layer).
- Duplicate vector/pointer type declarations merged; vk_harness enables barycentrics/interlock/maintenance8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:59:41 -05:00

19 lines
593 B
NASM

; v_fma_f16 op_sel (source and destination halves), v_subrev_co_ci_u32 with borrow, 64-bit v_cmp/v_cmpx.
; Expected mrt0 bits: 0xabcd4400, 0x46001234, 0xfffffffa, 7
v_mov_b32 v0, 0x40003c00
v_mov_b32 v1, 0x44004200
v_mov_b32 v2, 0xabcd0000
v_mov_b32 v3, 0x00001234
v_fma_f16 v2, v0, v1, 0 op_sel:[0,1,0,0]
v_fma_f16 v3, v0, v1, 0 op_sel:[1,0,0,1]
v_mov_b32 v4, 5
s_mov_b32 vcc_lo, -1
v_subrev_co_ci_u32_e64 v5, s0, 10, v4, vcc_lo
v_mov_b32 v6, 0
v_mov_b32 v7, 0
v_cmp_eq_u64_e64 s1, 0, v[6:7]
v_cndmask_b32_e64 v8, 0, 7, s1
v_cmpx_eq_u64_e32 0, v[6:7]
exp mrt0 v2, v3, v5, v8 done vm
s_endpgm