diff options
| author | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 06:33:21 +0000 |
|---|---|---|
| committer | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 07:34:04 +0000 |
| commit | b491c51c5e7ea9fe70a37c141e2d92def710985c (patch) | |
| tree | b375b20e10f3d8f3f4bdf75b24807ab67a375ae6 /runtime/src/xma2_decoder.cpp | |
| parent | 3faac557b1584d39004357918e60325b4d4ff0fe (diff) | |
tools/wint_diff.py: generate clamp on the carry-out ops
The e64 forms of v_add/sub/subrev_co_u32 and v_add/sub/subrev_co_ci_u32
now get clamp on about a third of their lines. The reference saturates D
(0xffffffff on an add's carry, 0 on a sub's borrow) and still writes the
real carry or borrow to the mask, as measured on gfx1035 and gfx1036 in
the docs/design.md "Integer clamp" row. clamp on any other line is a
RefError.
One source of an e64 _co_ci_ line is now -1 one time in five: then the
carry (borrow) in alone decides the carry (borrow) out, the edge an
overflow test written as "result < source" misses. In the e64 form both
constant-bus slots hold masks, so before this only the inline constant
-1 (one value in 81) or a stray all-ones lane reached it.
Four new tests; a paragraph in docs/shader_validation.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions