Skip to content

aarch64: remove x30 -> lr translation in inline assembly clobbers #148900

@lalinsky

Description

@lalinsky

Codegen currently has this code:

} else if reg == InlineAsmReg::AArch64(AArch64InlineAsmReg::x30) {
// LLVM doesn't recognize x30
"{lr}".to_string()
} else {

I hit the same issue in Zig and decided to fix it properly in LLVM, so when the fix gets released, this will no longer be needed:

llvm/llvm-project#167783

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationO-AArch64Armv8-A or later processors in AArch64 modeneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions