-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Open
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationArea: Code generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeS-waiting-on-LLVMStatus: the compiler-dragon is eepy, can someone get it some tea?Status: 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.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Codegen currently has this code:
rust/compiler/rustc_codegen_llvm/src/asm.rs
Lines 487 to 490 in 21cbbdc
| } 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:
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationArea: Code generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeS-waiting-on-LLVMStatus: the compiler-dragon is eepy, can someone get it some tea?Status: 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.Relevant to the compiler team, which will review and decide on the PR/issue.