upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/process.cpp
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-22 09:54:29 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-22 09:54:29 -0300
commitca724c929a596922c2feb73dd8ed3f5ec0264703 (patch)
tree194a1a6fb33f87296a96701a23ec3550cd2a3bcc /runtime/shims/process.cpp
parent41f448261e1de8a410b4d760e69a7e5656cef858 (diff)
rdna2spirv: packed 16-bit integer ops (v_pk_add/sub/mul_lo/mad/max/min)
v_pk_add/sub_u16/i16, v_pk_mul_lo_u16, v_pk_mad_u16/i16 and v_pk_max/min_u16/i16 were rejected. Each result half takes its sources' halves from op_sel / op_sel_hi, as the packed shifts do, wraps to 16 bits, and saturates under clamp (add, sub, mad). neg_lo/neg_hi and clamp on the other ops are rejected; a constant reads as its low 16 bits, and a constant whose high half op_sel would read (not measured for integer ops) is rejected. tests/semantic/test_alu_pk_int16.py covers value grids, op_sel, clamp, constants and the rejected forms. docs/design.md row added.
Diffstat (limited to 'runtime/shims/process.cpp')
0 files changed, 0 insertions, 0 deletions