asm!
can't let you use lateout("rbx")
(LLVM needs it)
#90083
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
A-inline-assembly
Area: Inline assembly (`asm!(…)`)
C-bug
Category: This is a bug.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is about an unstable feature, so maybe you don't consider that a regression, exactly. This seemed like the best bug template to me; I hope it's OK.
I'm reading the
asm!
document at https://doc.rust-lang.org/beta/unstable-book/library-features/asm.html. Thecpuid
example has this code:But when you press the Play button to try it out, you get:
I hacked it up locally (building with Rust Nightly), and this seems to work:
I.e. I comment out the
lateout("ebx")
line, and add a second macro invocation to get the value of ebx.But I assume there is a better way. :) The docs should be updated to show the better way. Thanks!
The text was updated successfully, but these errors were encountered: