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/sieve-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 / sieve-L.spec` 68 lines ยท 3152 bytes Raw Blame History 1 @ng a64-enc 2 ; sieve ngL: the leaf pass (omc 0x4001fc..0x400338, fl at 0x10800020, `2000001` bytes) with `2000001`, 3 ; `2000000`, `1000000`, the base, `1999999` and the stored 1 hoisted into x10..x15 (LICM), every loop tested at 4 ; the bottom (rotation; guards kept where entry is not already known to pass the test), the zero store 5 ; from WZR. Bounds checks (trap 3, 0x400348) and both while bound counters x1, x3 (trap 4, 0x400350) kept. 6 ; @old 0x4001fc 0xd2800000 0xd2909021 0xf2a003c1 0xeb01001f 0x54000162 0xd2800001 0xd2909022 0xf2a003c2 0xeb02001f 0x54000942 0xd2800403 0xf2a21003 0x38206861 0x91000400 0x17fffff3 0xd2800040 0xd2800001 0x9b007c02 0xd2909003 0xf2a003c3 0xeb03005f 0x540004c8 0xd2884804 0xf2a001e4 0xeb04003f 0x54000782 0x91000421 0xd2909022 0xf2a003c2 0xeb02001f 0x540006a2 0xd2800403 0xf2a21003 0x38606864 0xf100009f 0x540002c1 0x9b007c02 0xd2800003 0xd2909004 0xf2a003c4 0xeb04005f 0x54000208 0xd2884805 0xf2a001e5 0xeb05007f 0x54000502 0x91000463 0xd2800024 0xd2909025 0xf2a003c5 0xeb05005f 0x54000402 0xd2800406 0xf2a21006 0x382268c4 0x8b000042 0x17ffffee 0x91000400 0x17ffffd7 0xd2800001 0xd2800002 0xd2908fe3 0xf2a003c3 0xeb03005f 0x540001c2 0x91000843 0xd2909024 0xf2a003c4 0xeb04007f 0x540001c2 0xd2800405 0xf2a21005 0x386368a6 0xf10000df 0x54000041 0x91000421 0x91000442 0x17fffff0 0xaa0103e0 0xd65f03c0 7 ; @at 0x4001fc 8 movzx 10 0x8481 0 | mov x10, #0x8481 9 movkx 10 0x1e 1 | movk x10, #0x1e, lsl #16 10 movzx 11 0x8480 0 | mov x11, #0x8480 11 movkx 11 0x1e 1 | movk x11, #0x1e, lsl #16 12 movzx 12 0x4240 0 | mov x12, #0x4240 13 movkx 12 0xf 1 | movk x12, #0xf, lsl #16 14 movzx 13 0x20 0 | mov x13, #0x20 15 movkx 13 0x1080 1 | movk x13, #0x1080, lsl #16 16 movzx 14 0x847f 0 | mov x14, #0x847f 17 movkx 14 0x1e 1 | movk x14, #0x1e, lsl #16 18 movzx 15 1 0 | mov x15, #0x1 19 movzx 0 0 0 | mov x0, #0x0 20 subsx 31 0 10 | cmp x0, x10 21 bcond 2 70 | b.cs @+280 22 strbr 31 13 0 0 | strb wzr, [x13, x0] 23 addxi 0 0 1 0 | add x0, x0, #0x1 24 subsx 31 0 10 | cmp x0, x10 25 bcond 3 -5 | b.cc @-20 26 movzx 0 2 0 | mov x0, #0x2 27 movzx 1 0 0 | mov x1, #0x0 28 mulx 2 0 0 | mul x2, x0, x0 29 subsx 31 2 11 | cmp x2, x11 30 bcond 8 25 | b.hi @+100 31 subsx 31 1 12 | cmp x1, x12 32 bcond 2 61 | b.cs @+244 33 addxi 1 1 1 0 | add x1, x1, #0x1 34 subsx 31 0 10 | cmp x0, x10 35 bcond 2 56 | b.cs @+224 36 ldrbr 4 13 0 0 | ldrb w4, [x13, x0] 37 cbnzw 4 14 | cbnz w4, @+56 38 mulx 2 0 0 | mul x2, x0, x0 39 movzx 3 0 0 | mov x3, #0x0 40 subsx 31 2 11 | cmp x2, x11 41 bcond 8 10 | b.hi @+40 42 subsx 31 3 12 | cmp x3, x12 43 bcond 2 50 | b.cs @+200 44 addxi 3 3 1 0 | add x3, x3, #0x1 45 subsx 31 2 10 | cmp x2, x10 46 bcond 2 45 | b.cs @+180 47 strbr 15 13 2 0 | strb w15, [x13, x2] 48 addx 2 2 0 | add x2, x2, x0 49 subsx 31 2 11 | cmp x2, x11 50 bcond 9 -8 | b.ls @-32 51 addxi 0 0 1 0 | add x0, x0, #0x1 52 mulx 2 0 0 | mul x2, x0, x0 53 subsx 31 2 11 | cmp x2, x11 54 bcond 9 -23 | b.ls @-92 55 movzx 1 0 0 | mov x1, #0x0 56 movzx 2 0 0 | mov x2, #0x0 57 addxi 3 2 2 0 | add x3, x2, #0x2 58 subsx 31 3 10 | cmp x3, x10 59 bcond 2 32 | b.cs @+128 60 ldrbr 6 13 3 0 | ldrb w6, [x13, x3] 61 cbnzw 6 2 | cbnz w6, @+8 62 addxi 1 1 1 0 | add x1, x1, #0x1 63 addxi 2 2 1 0 | add x2, x2, #0x1 64 subsx 31 2 14 | cmp x2, x14 65 bcond 3 -8 | b.cc @-32 66 addxi 0 1 0 0 | add x0, x1, #0x0 67 ret 30 | ret 68 ; @nop 0x40033c