mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 14:50:43 +00:00
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>