nx_atomic_intrinsic_test.nx
buildroot/runtime/nx_atomic_intrinsic_test.nx
about
nx_atomic_intrinsic_test.nx -- exercise the __atomic_* compiler
builtins. Single-threaded smoke; SMP semantics get exercised by
nx_thread_pool integration tests once threads ship.
Each test isolates one builtin so a failure points at the exact
codegen path: load / store / cas / faa / fence.
dependencies 2 imports · 0 importers
imports: nx_kernel_v2.nxnx_log.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
| 11 | const NX_MO_RELAXED: i64 = 0 |
| 12 | const NX_MO_ACQUIRE: i64 = 2 |
| 13 | const NX_MO_RELEASE: i64 = 3 |
| 14 | const NX_MO_ACQ_REL: i64 = 4 |
| 15 | const NX_MO_SEQ_CST: i64 = 5 |
functions
| 17 | func t1_load_store_round_trip() -> i64 called by 1: main |
| 27 | func t2_cas_success() -> i64 called by 1: main |
| 37 | func t3_cas_failure_leaves_cell() -> i64 called by 1: main |
| 47 | func t4_faa_returns_prior() -> i64 called by 1: main |
| 60 | func t5_fence_compiles_and_runs() -> i64 called by 1: main |
| 69 | func t6_spinlock_via_cas() -> i64 called by 1: main |
| 83 | func main() -> nx_exit |