This work requires upstreaming to https://github.com/ziglang/zig
As a repro compile this program with the following build command:
export fn foo(a: i32, b: i32) i32 {
return a * b;
}
zig build-exe -target avr-freestanding -mcpu=avr5 test.zig -O ReleaseSmall
and you'll see the following output:
LLVM ERROR: Not supported instr: <MCInst 312 <MCOperand Reg:1> <MCOperand Imm:15> <MCOperand Reg:53>>
note: doing this in a basic program that is being built by the microzig build function, it does not bundle compiler_rt, so you'll see a missing definition:
ld.lld: error: undefined symbol: __mulsi3
This work requires upstreaming to https://github.com/ziglang/zig
As a repro compile this program with the following build command:
and you'll see the following output:
note: doing this in a basic program that is being built by the microzig build function, it does not bundle compiler_rt, so you'll see a missing definition: