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
omega-mv / seed / ng / bench / hand / bcopy-L.spec
| 1 | @ng a64-enc |
| 2 | ; bcopy ngL: the copy loop (omc 0x40011c..0x400164) with loop-invariant constants and addresses hoisted |
| 3 | ; (LICM) and the test moved to the bottom (rotation; i = 0 < 65536 on entry). Both bounds checks kept, |
| 4 | ; against the hoisted limit. Registers x2..x11 are dead after the loop (x0 r, x1 k live). |
| 5 | ; @old 0x40011c 0xd2800002 0xd2a00023 0xeb03005f 0x54000202 0xd29fffe3 0xcb020064 0xd2a00025 0xeb05005f 0x54000562 0xd2a21006 0x386268c8 0xca010109 0xd2a0002a 0xeb0a009f 0x540004a2 0xd2a2102b 0x38246969 0x91000442 0x17ffffef |
| 6 | ; @at 0x40011c |
| 7 | movzx 2 0 0 | mov x2, #0x0 |
| 8 | movzx 3 1 1 | mov x3, #0x10000 |
| 9 | movzx 5 0xffff 0 | mov x5, #0xffff |
| 10 | movzx 6 0x1080 1 | mov x6, #0x10800000 |
| 11 | movzx 11 0x1081 1 | mov x11, #0x10810000 |
| 12 | subx 4 5 2 | sub x4, x5, x2 |
| 13 | subsx 31 2 3 | cmp x2, x3 |
| 14 | bcond 2 44 | b.cs @+176 |
| 15 | ldrbr 8 6 2 0 | ldrb w8, [x6, x2] |
| 16 | eorx 9 8 1 | eor x9, x8, x1 |
| 17 | subsx 31 4 3 | cmp x4, x3 |
| 18 | bcond 2 40 | b.cs @+160 |
| 19 | strbr 9 11 4 0 | strb w9, [x11, x4] |
| 20 | addxi 2 2 1 0 | add x2, x2, #0x1 |
| 21 | subsx 31 2 3 | cmp x2, x3 |
| 22 | bcond 3 -10 | b.cc @-40 |
| 23 | ; @nop 0x400168 |