Skip to content

riscv64: TODO: airBitCast [3]u8 to u24 #24141

Open
@RetroDev256

Description

@RetroDev256

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

No one assigned

    Labels

    arch-riscv32-bit and 64-bit RISC-Vbackend-self-hostedbugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions