midenc-codegen-masm 0.7.1

Miden Assembly backend for the Miden compiler
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public builtin.function @test(v0: u32, v1: u32) -> u32 {
^block0(v0: u32, v1: u32):
    v2 = scf.index_switch v0 : u32 
    case 0 {
    ^block1:
        v3 = arith.constant 0 : u32;
        scf.yield v3;
    }
    default {
    ^block2:
        v4 = arith.mul v0, v1 : u32 #[overflow = checked];
        scf.yield v4;
    };
    builtin.ret v2;
};