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 / tests / ir / t12-select-i32-1-1-1.oir
| 1 | omegair 1 |
| 2 | type %t32 = array u32 16 |
| 3 | type %t33 = ref edit host %t32 |
| 4 | type %t34 = ref view host %t32 |
| 5 | type %t35 = vec u32 4 |
| 6 | type %t36 = slice edit host u32 |
| 7 | type %t37 = array u8 8 |
| 8 | type %t38 = ref edit host %t37 |
| 9 | type %t39 = array f32 4 |
| 10 | type %t40 = ref edit host %t39 |
| 11 | global @g0 %t32 zero |
| 12 | global @g1 %t37 zero |
| 13 | global @g2 %t39 zero |
| 14 | export @f0 flags 0 -> i32 |
| 15 | block ^0 |
| 16 | %1 = const i32 1 |
| 17 | %2 = const i64 2 |
| 18 | %3 = const u32 3 |
| 19 | %4 = const u64 4 |
| 20 | %5 = const f32 0x3f800000 |
| 21 | %6 = const bool true |
| 22 | %7 = gaddr %t33 @g0 |
| 23 | %8 = gaddr %t34 @g0 |
| 24 | %9 = const u64 1 |
| 25 | %10 = chk.bounds 3 %0 %7 %4 %9 |
| 26 | %11 = chk.bounds 3 %10 %8 %4 %9 |
| 27 | %12 = vsplat %t35 %3 |
| 28 | %13 = gaddr %t38 @g1 |
| 29 | %14 = gaddr %t40 @g2 |
| 30 | %15 = chk.bounds 3 %11 %14 %4 %9 |
| 31 | %16 = select i32 %1 %1 %1 |
| 32 | retv %15 %1 |
| 33 | end |