interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / bench / hand / arith-L.spec

27 lines · 1225 bytes Raw Blame History
1@ng a64-enc
2; arith ngL: the hash loop (omc 0x40027c..0x4002bc) rebuilt at the end of the file with its loop head on a
3; 64-byte boundary (0x4004c0; the M variant uses the same head), constants 40000000, 31 and 1000003 hoisted
4; into x4, x7, x10 (LICM), the test at the bottom (rotation; i = 0 < 40000000 on entry). rem stays UDIV+MSUB.
5; arith has no array accesses, so there is no B rung. Exit state: x3 = x4 = 40000000 as in omc.
6; @old 0x40027c 0xd28b4004 0xf2a04c44 0xeb04007f 0x540001c2 0xd28003e4 0x9b047c25 0x8b0300a1 0x9b037c65 0xd343fc66 0xca0600a4 0xd2884865 0xf2a001e5 0x9ac50888 0x9b059106 0x8b060042 0x91000463 0x17fffff0
7; @at 0x40027c
8b 140 | b @+560
9; @at 0x400478
10; @nop 0x4004ac
11movzx 4 0x5a00 0 | mov x4, #0x5a00
12movkx 4 0x262 1 | movk x4, #0x262, lsl #16
13movzx 7 31 0 | mov x7, #0x1f
14movzx 10 0x4243 0 | mov x10, #0x4243
15movkx 10 0xf 1 | movk x10, #0xf, lsl #16
16mulx 5 1 7 | mul x5, x1, x7
17addx 1 5 3 | add x1, x5, x3
18mulx 5 3 3 | mul x5, x3, x3
19ubfmx 6 3 3 63 | lsr x6, x3, #3
20eorx 8 5 6 | eor x8, x5, x6
21udivx 9 8 10 | udiv x9, x8, x10
22msubx 6 9 10 8 | msub x6, x9, x10, x8
23addx 2 2 6 | add x2, x2, x6
24addxi 3 3 1 0 | add x3, x3, #0x1
25subsx 31 3 4 | cmp x3, x4
26bcond 3 -10 | b.cc @-40
27b -139 | b @-556