nx_smoke_nxc_tilde.nx
buildroot/runtime/nx_smoke_nxc_tilde.nx
about
nx_smoke_nxc_tilde.nx -- 1:1 proof that the SELF-HOSTED RV64 backend
(nx_riscv.nx) lowers `~` (OP_NOT) to `xori rd, rs, -1`. Mirrors
nx_smoke_nxc_pipeline.nx but (a) the demo exercises `~` on a non-
foldable parameter and (b) it WRITES the emitted RV64 asm to stdout
so the gate can grep for the `xori ..., -1` one's-complement and
confirm the OP_NOT lowering really fires (not the silent drop that
existed before). Then it still assembles, proving nxasm accepts it.
exit code: code_len & 0xFF on success (>0), or an error sentinel.
license_tier: ORIGINAL
dependencies 12 imports · 0 importers
diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nxnx_outbuf.nxnx_ir.nxnx_tokenizer.nxnx_parse.nxnx_opt.nxnx_regalloc.nxnx_riscv.nxcrt0.nxnxasm_v2.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
| none |
functions
| 25 | func main() -> i64 |