code wiki / _hdl_build / nx_simd_sse_shuf_gate.nx

nx_simd_sse_shuf_gate.nx

buildroot/runtime/_hdl_build/nx_simd_sse_shuf_gate.nx

4880 B117 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic simd
docsdependenciesstructsconstsfunctions

about

nx_simd_sse_shuf_gate.nx -- SOVEREIGN 128-bit pshufd run-KAT (rung R2+R3: 3-OPERAND assembler + packed dword shuffle), on REAL x86 silicon, NO gcc/ qemu/binutils. AUTHOR=ORGAN, no-false-green. Proves (a) the assembler now parses a THIRD operand (the prerequisite for pshufd AND all VEX/EVEX 256/512-bit ops), and (b) pshufd routes lanes by its imm control byte. src=[11,22,33,44] (4x u32): POS: pshufd $2 -> dst lane0 = src[2] = 33 -> exit(33). NEG: pshufd $0 -> dst lane0 = src[0] = 11 -> exit(11). GREEN iff pos==33 AND neg==11 AND pos!=neg (distinct => the imm genuinely selects the lane, and op0=imm/op1=src/op2=dst threaded correctly). Completes the sovereign 128-bit integer SIMD surface. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_simd_sse_shuf_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main write_shuf_s sys_openat_wr gw sys_write gwn sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ sys_close asm_and_run sys_mmap ↻ g_run sys_mmap ↻ sys_openat_wr ↻ sys_fork sys_dup3 sys_execve sys_exit ↻ sys_wait4 sys_close ↻ g_emit gw ↻ gwn ↻ sys_openat_append sys_close ↻ gv_ctr

structs

none

consts

16const ASM_TOOL: *u8 = "_offc/nxasm_x86_main.elf"
17const SV_LOG: *u8 = "knowledge/status/simd_vec_kat.log"

functions

19func gw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 2: write_shuf_sg_emit calls 1: sys_write
20func gwn(fd: i64, v: i64) -> i64
31func g_run(path: *u8, argv: *i64) -> i64
51func asm_and_run(spath: *u8, elfpath: *u8) -> i64
called by 1: main calls 2: sys_mmapg_run
65func write_shuf_s(path: *u8, sel: i64) -> i64
called by 1: main calls 4: sys_openat_wrgwgwnsys_close
86func g_emit(fd: i64, pos: i64, neg: i64, ok: i64) -> i64
called by 1: main calls 2: gwgwn
94func main() -> i64