Closed
Description
I attempted to compile a crate containing the following expression:
unsafe { asm!("svc 0", lateout("r14") _); }
I expected it to compile successfully.
Instead, I received this error:
error: couldn't allocate output register for constraint '{r14}'
rustc --version --verbose
:
rustc 1.52.0-nightly (3f5aee2d5 2021-02-12)
binary: rustc
commit-hash: 3f5aee2d5241139d808f4fdece0026603489afd1
commit-date: 2021-02-12
host: x86_64-unknown-linux-gnu
release: 1.52.0-nightly
LLVM version: 11.0.1
RUST_BACKTRACE=1
omitted, it did not produce anything else.
Metadata
Metadata
Assignees
Labels
Area: Inline assembly (`asm!(…)`)Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.`#![feature(asm)]` (not `llvm_asm`)Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateRelevant to the compiler team, which will review and decide on the PR/issue.