code wiki / _hdl_build / nx_cpuid_gate.nx
nx_cpuid_gate.nx
buildroot/runtime/_hdl_build/nx_cpuid_gate.nx
about
nx_cpuid_gate.nx -- proves the cpuid(7,0):EBX decode, including features THIS BOX DOES NOT HAVE.
The load-bearing cells are T7/T8: they decode AVX-512 correctly on a V1500B (Zen 1, NO AVX-512) by
feeding synthetic registers. A feature detector that can only be tested on silicon you already own is
worthless for the exact question it exists to answer -- 'will the next machine be faster'.
Every policy cell is a gv_bite (fires on bad, silent on good). license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_cpuid_lib.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
structs
| none |
consts
| 10 | const CG_BUF: i64 = 512 |
| 11 | const CG_ALL_ONES: i64 = 4294967295 |
| 12 | const CG_ONLY_AVX2: i64 = 32 |
| 13 | const CG_ONLY_AVX512F: i64 = 65536 |
| 17 | const CG_V1500B_SHAPED: i64 = 547094953 |
functions
| 19 | func cg_cpy(d: *u8, s: *u8) -> i64 called by 1: main |
| 25 | func cg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 } called by 1: main |
| 27 | func main() -> i64 |