Tracking Issue for asm_goto_with_outputs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.2k
- PR merge metrics
- PR metrics pending
Description
The feature gate for the issue is #![feature(asm_goto_with_outputs)].
Summary
This now tracks the with_outputs variant since https://github.com/rust-lang/rust/pull/131523. asm_goto was stabilized in 1.87.
This feature adds a label<block> operand type to asm!.
Example:
unsafe {
asm!(
"jmp {}",
label {
println!("Jumped from asm!");
}
);
}
The block must have unit type.
Steps
- Implementation
- Adjust documentation (see instructions on rustc-dev-guide)
- Formatting for new syntax has been added to the Style Guide (nightly-style-procedure)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- LLVM miscompilation for asm goto with outputs https://github.com/llvm/llvm-project/issues/74483
@rustbot labels: +A-inline-assembly +F-asm
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tracking issue, feature gate asm_goto_with_outputs, stabilization PR #133870, and the linked LLVM miscompilation issue. The remaining work is represented by the unchecked implementation, documentation, and Style Guide tasks; done requires those checklist items to be completed while resolving the stated LLVM concern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100