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 / tests / opt / o-shfl.oir

23 lines · 378 bytes Raw Blame History
1omegair 1
2kernel @f0 flags 0 threads 32 1 1 subgroup 32 -> void
3block ^0
4%1 = const u64 7
5%2 = const u32 1
6%3 = const u64 0
7br ^1 %0 %3
8block ^1 %4:tok %5:u64
9%6 = const u64 4
10%7 = lt bool %5 %6
11cbr %4 %7 ^2 ^3
12block ^2 %8:tok
13%9 = shfl u64 1 %1 %2
14%10 = add u64 %5 %9
15br ^1 %8 %10
16block ^3 %11:tok
17ret %11
18end
19export @f1 flags 0 -> i32
20block ^0
21%1 = const i32 0
22retv %0 %1
23end