code wiki / (root) / parse_fp_op_test.nx

parse_fp_op_test.nx

buildroot/runtime/parse_fp_op_test.nx

1822 B56 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic parse
docsdependenciesstructsconstsfunctions

about

parse_fp_op_test.nx -- verify fp_op_for_int op promotion. fp_op_for_int is the helper parse.nx uses to promote integer opcodes (OP_ADD/SUB/MUL/DIV_S) to their F-extension counterparts when either operand is fp-typed. Guards against silent miscompiles that would fire if the table got a new integer op and the promoter didn't update.

dependencies 3 imports · 0 importers

syscalls.nx types.nx parse.nx parse_fp_op_test.nx

imports: syscalls.nxtypes.nxparse.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main fp_op_for_int

structs

none

consts

none

functions

13func main() -> i64 {
calls 1: fp_op_for_int