nx_f16_test.nx
buildroot/runtime/nx_f16_test.nx
about
nx_f16_test.nx -- smoke + IEEE 754 conformance for nx_f16.nx.
Tests cover:
A) Verdict + classification gates
B) Sign manipulation (neg, abs)
C) IEEE 754 equality (NaN != NaN, +0 == -0)
D) Multiplication on canonical bit patterns:
1.0 * 1.0 = 1.0 (0x3C00 * 0x3C00 = 0x3C00)
2.0 * 0.5 = 1.0 (0x4000 * 0x3800 = 0x3C00)
-1.0 * 1.0 = -1.0 (0xBC00 * 0x3C00 = 0xBC00)
-1.0 * -1.0 = 1.0 (0xBC00 * 0xBC00 = 0x3C00)
0.0 * any = 0.0 (zero propagation)
0.0 * inf = NaN (IEEE 754 spec)
inf * 1.0 = inf
NaN * 1.0 = NaN
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_f16.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
| 21 | func main() -> i64 |