diff options
| author | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-21 21:44:11 -0300 |
|---|---|---|
| committer | Luiz Neves <luizgustavobenicio@gmail.com> | 2026-11-21 21:44:11 -0300 |
| commit | 3f708162179dcb62bcb48ef74b2d6ff20495806d (patch) | |
| tree | 210b703742558718640eb7a9907f132c47f26f2e /runtime/src/pe_loader.cpp | |
| parent | 91b36cf86cb92a95836eed8af73abc0671a61e31 (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