code wiki / (root) / _self_host_li_boundary_test.nx

_self_host_li_boundary_test.nx

buildroot/runtime/_self_host_li_boundary_test.nx

1967 B59 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic self
docsdependenciesstructsconstsfunctions

about

Boundary smoke for nxasm parse_li -- exercises corner cases at every immediate-width boundary so a future regression in the 3-tier expansion (12-bit / 32-bit / 64-bit) fires immediately. Born from the silent-truncation bug (2026-05-16): parse_li used to mask any immediate to 12 bits, mangling 0x0001000100010001 into 1 and breaking every packed-data SIMD smoke. This pins the BOUNDARIES so any drift in expansion logic surfaces with a precise case number.

dependencies 1 imports · 0 importers

nx_syscalls.nx _self_host_li_boundary_test.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

13func main() -> i64