upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 21:44:11 -0300
committerLuiz Neves <luizgustavobenicio@gmail.com>2026-11-21 21:44:11 -0300
commit3f708162179dcb62bcb48ef74b2d6ff20495806d (patch)
tree210b703742558718640eb7a9907f132c47f26f2e /runtime/src/pe_loader.cpp
parent91b36cf86cb92a95836eed8af73abc0671a61e31 (diff)
Translator: v_add_nc_i32 / v_sub_nc_i32, and integer clamp on the _nc adds
v_add_nc_i32 and v_sub_nc_i32 raised Unsupported. The VOP3 clamp bit on v_add_nc_u32 / v_sub_nc_u32 / v_subrev_nc_u32 was silently ignored, so a saturating add came out wrapped. On GFX9+ an integer add/sub with clamp saturates (LLVM selects uaddsat/usubsat and saddsat/ssubsat to these ops): unsigned to [0, 0xFFFFFFFF], signed to [INT_MIN, INT_MAX]. tests/semantic/test_alu_add_nc_clamp.py checks all five ops with and without clamp against a plain-Python reference; docs/design.md gets a contract row.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions