Commit Graph

2 Commits

Author SHA1 Message Date
7e3ceb81b2 fix(shader): translate constant 64-bit vector compares
The GFX10 true and false predicates depend only on the incoming EXEC mask. Reuse the comparison destination logic so register pairs and NaN operands preserve the same lane semantics as narrower forms.
2026-11-22 17:26:52 +01:00
403273a9e0 Translator: constant and ordered/unordered VOPC compares
v_cmp(x)_f_* / v_cmp(x)_t_* on integers and v_cmp(x)_f / _tru / _o / _u on
f32 and f16 raised Unsupported. f is always false, t and tru always true; o
is true when neither source is NaN (OpIsNan), u when either is. The result
goes through the existing compare path (VCC, an SGPR mask, or EXEC for
v_cmpx; off lanes give 0).

tests/semantic/test_vopc_const_ordered.py checks them against a plain-Python
reference, including NaN, infinity and signalling-NaN inputs.
2026-11-21 23:27:26 -03:00