-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
arch-riscv32-bit and 64-bit RISC-V32-bit and 64-bit RISC-Vbackend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
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
Metadata
Metadata
Assignees
Labels
arch-riscv32-bit and 64-bit RISC-V32-bit and 64-bit RISC-Vbackend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior