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 / a64 / tests / oir / v-swap-nocall.oir

30 lines · 599 bytes Raw Blame History
1omegair 1
2type %t32 = vec f32 4
3export @f0 flags 0 -> i32
4block ^0
5%1 = const f32 0x3f800000
6%2 = const f32 0x40000000
7%3 = vsplat %t32 %1
8%4 = vsplat %t32 %2
9%5 = const u64 0
10br ^1 %0 %5 %3 %4
11block ^1 %6:tok %7:u64 %8:%t32 %9:%t32
12%10 = const u64 1
13%11 = lt bool %7 %10
14cbr %6 %11 ^2 ^3
15block ^2 %12:tok
16%13 = const u64 16
17%14 = chk.fuel 4 %12 %7 %13
18%15 = const u64 1
19%16 = add u64 %7 %15
20br ^1 %14 %16 %9 %8
21block ^3 %17:tok
22%18 = vextract f32 0 %8
23%19 = vextract f32 0 %9
24%20 = conv i32 0 %18
25%21 = conv i32 0 %19
26%22 = const i32 10
27%23 = mul i32 %20 %22
28%24 = add i32 %23 %21
29retv %17 %24
30end