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.
@Amanieu diagnosed the cause and offered a solution here.
I attempted to compile a crate containing the following expression:
I expected it to compile successfully.
Instead, I received this error:
rustc --version --verbose:RUST_BACKTRACE=1omitted, it did not produce anything else.@Amanieu diagnosed the cause and offered a solution here.