Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/bench/hand/linear-L.spec # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / bench / hand / linear-L.spec` 39 lines ยท 1710 bytes Raw Blame History 1 @ng a64-enc 2 ; linear ngL: the leaf lindot (omc 0x4000b4..0x400134; c, a, w in x0..x2, i, j in x3, x4; result f64 bits 3 ; in x0) with 256, 16384 and 65536 hoisted (LICM) and the k loop tested at the bottom (rotation). The three 4 ; bounds checks (trap 3, 0x400144), the f32 loads through W + FMOV, and FMUL then FADD (no fusion, the f64 5 ; result stays bit-identical) are kept. 6 ; @old 0x4000b4 0xf104009f 0x54000462 0xb8647806 0x1e2700c0 0x1e22c015 0xd2802008 0x9b087c66 0xd2802009 0x9b097c88 0xd2800009 0xf104013f 0x54000262 0xd288000a 0xeb0a00df 0x540002c2 0xb866782b 0x1e270160 0x1e22c01b 0xd2a0002d 0xeb0d011f 0x54000202 0xb868784e 0x1e2701c0 0x1e22c01e 0x1e7e0b7f 0x1e7f2ab5 0x910004c6 0x91000508 0x91000529 0x17ffffed 0x9e6602a5 0xaa0503e0 0xd65f03c0 7 ; @at 0x4000b4 8 subsxi 31 4 256 0 | cmp x4, #0x100 9 bcond 2 35 | b.cs @+140 10 ldrwr 6 0 4 1 | ldr w6, [x0, x4, lsl #2] 11 fmovsw 0 6 | fmov s0, w6 12 fcvtds 21 0 | fcvt d21, s0 13 movzx 8 256 0 | mov x8, #0x100 14 mulx 6 3 8 | mul x6, x3, x8 15 mulx 8 4 8 | mul x8, x4, x8 16 movzx 10 0x4000 0 | mov x10, #0x4000 17 movzx 13 1 1 | mov x13, #0x10000 18 movzx 9 0 0 | mov x9, #0x0 19 subsx 31 6 10 | cmp x6, x10 20 bcond 2 24 | b.cs @+96 21 ldrwr 11 1 6 1 | ldr w11, [x1, x6, lsl #2] 22 fmovsw 0 11 | fmov s0, w11 23 fcvtds 27 0 | fcvt d27, s0 24 subsx 31 8 13 | cmp x8, x13 25 bcond 2 19 | b.cs @+76 26 ldrwr 14 2 8 1 | ldr w14, [x2, x8, lsl #2] 27 fmovsw 0 14 | fmov s0, w14 28 fcvtds 30 0 | fcvt d30, s0 29 fmuld 31 27 30 | fmul d31, d27, d30 30 faddd 21 21 31 | fadd d21, d21, d31 31 addxi 6 6 1 0 | add x6, x6, #0x1 32 addxi 8 8 1 0 | add x8, x8, #0x1 33 addxi 9 9 1 0 | add x9, x9, #0x1 34 subsxi 31 9 256 0 | cmp x9, #0x100 35 bcond 3 -16 | b.cc @-64 36 fmovxd 5 21 | fmov x5, d21 37 orrx 0 31 5 | mov x0, x5 38 ret 30 | ret 39 ; @nop 0x400138