Skip to content

start: LLVM 17 regression compiling _start for riscv64-linux #16799

@jacobly0

Description

@jacobly0
pub fn main() void {}
$ zig build-exe repro.zig -target riscv64-linux
LLVM Emit Object... error: invalid operand in inline asm: ' li s0, 0
 li ra, 0
 sd sp, ${0}
 andi sp, sp, -16
 tail ${1}@plt'

upstream: llvm/llvm-project#64656

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend-llvmThe LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.upstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions