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 / nki / ops.unit.om
| 1 | note Every BIN subcode irnki lifts for uint32 lanes, plus swapped and repeated operands. |
| 2 | fn vaddu a uint b uint to uint |
| 3 | ret add a b |
| 4 | end |
| 5 | fn vsubu a uint b uint to uint |
| 6 | ret sub a b |
| 7 | end |
| 8 | fn vsubr a uint b uint to uint |
| 9 | ret sub b a |
| 10 | end |
| 11 | fn vmulu a uint b uint to uint |
| 12 | ret mul a b |
| 13 | end |
| 14 | fn vandu a uint b uint to uint |
| 15 | ret and a b |
| 16 | end |
| 17 | fn voru a uint b uint to uint |
| 18 | ret or a b |
| 19 | end |
| 20 | fn vxoru a uint b uint to uint |
| 21 | ret xor a b |
| 22 | end |
| 23 | fn vdbl a uint b uint to uint |
| 24 | ret add a a |
| 25 | end |