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-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.O-AArch64Armv8-A or later processors in AArch64 modeS-waiting-on-LLVMStatus: the compiler-dragon is eepy, can someone get it some tea?T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions