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 / bcopy-B.spec

18 lines · 823 bytes Raw Blame History
1@ng a64-enc
2; bcopy ngB: ngL plus bounds-check elimination (i in [0, 65536) by the loop test, 65535 - i too), the
3; store index kept as its own down-counting induction variable x4.
4; @old 0x40011c 0xd2800002 0xd2a00023 0xeb03005f 0x54000202 0xd29fffe3 0xcb020064 0xd2a00025 0xeb05005f 0x54000562 0xd2a21006 0x386268c8 0xca010109 0xd2a0002a 0xeb0a009f 0x540004a2 0xd2a2102b 0x38246969 0x91000442 0x17ffffef
5; @at 0x40011c
6movzx 2 0 0 | mov x2, #0x0
7movzx 3 1 1 | mov x3, #0x10000
8movzx 4 0xffff 0 | mov x4, #0xffff
9movzx 6 0x1080 1 | mov x6, #0x10800000
10movzx 11 0x1081 1 | mov x11, #0x10810000
11ldrbr 8 6 2 0 | ldrb w8, [x6, x2]
12eorx 9 8 1 | eor x9, x8, x1
13strbr 9 11 4 0 | strb w9, [x11, x4]
14addxi 2 2 1 0 | add x2, x2, #0x1
15subxi 4 4 1 0 | sub x4, x4, #0x1
16subsx 31 2 3 | cmp x2, x3
17bcond 1 -6 | b.ne @-24
18; @nop 0x400168