Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32-bit ARM: Emit lr instead of r14 when specified as an asm! output register. #82141

Merged
merged 1 commit into from
Feb 16, 2021

Commits on Feb 15, 2021

  1. 32-bit ARM: Emit lr instead of r14 when specified as an asm! ou…

    …tput register.
    
    On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead.
    jrvanwhy committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    fd21eb1 View commit details
    Browse the repository at this point in the history