Files
betterxen/scripts
elforeign 3221f0e333 isa, decoder, shader, ref: the eight SOP2 64-bit logical forms through the semantic registry (#215)
s_and_b64, s_or_b64, s_xor_b64, s_andn2_b64, s_orn2_b64, s_nand_b64,
s_nor_b64 and s_xnor_b64 share one shape: an even-aligned SGPR pair
destination, two 64-bit sources and SCC = (D != 0). This adds the 64-bit
scalar vocabulary they need: an operand rule for even SGPR pairs and
64-bit inline constants and literals (the pinned XML declares the
sources FMT_NUM_U64, so a 32-bit literal is zero-extended), width-64
generator support, 64-bit primitives, decoder, compile-time evaluation on
SGPR pairs and both reference interpreters.

An independent oracle (tests/validation/tests/sop2_b64.rs) checks 4,432
cases and 2,608 rejected programs on both CPU interpreters and, through
the translator, on native Metal. EXEC, VCC, M0, TTMP and special operands
stay rejected. The 64-bit shifts and bit-field forms are left for later.

Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
2026-11-24 09:44:30 -06:00
..