Open
Description
Zig Version
0.15.0-dev.764+2e3154428
Steps to Reproduce and Observed Behavior
Compile the following code with
zig build-obj repo.zig -fno-llvm -target riscv64-linux -mcpu baseline+v+zbb
var a: [3]u8 = undefined;
export fn b() u32 {
return @as(u24, @bitCast(a));
}
You will observe the compile error
repo.zig:3:8: error: TODO: airBitCast [3]u8 to u24
export fn b() u32 {
~~~~~~~^~~~~~~~~~
Expected Behavior
No error