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 / a64 / tests / oir / u-selvec.oir
| 1 | omegair 1 |
| 2 | type %t32 = vec f32 4 |
| 3 | export @f0 flags 0 -> i32 |
| 4 | block ^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 7 |
| 10 | %6 = eq bool %5 %5 |
| 11 | %7 = select %t32 %6 %3 %4 |
| 12 | %8 = vextract f32 0 %7 |
| 13 | %9 = conv i32 0 %8 |
| 14 | retv %0 %9 |
| 15 | end |