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

Convert all uses of llvm_asm! to asm! #1052

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Mar 6, 2021

Fixes #904

@rust-highfive
Copy link

@Amanieu: no appropriate reviewer found, use r? to override

@Amanieu
Copy link
Member Author

Amanieu commented Mar 6, 2021

Blocked on rust-lang/rust#82838

@Amanieu Amanieu force-pushed the asm branch 5 times, most recently from 0f54977 to bb36916 Compare March 6, 2021 18:39
@BurntSushi
Copy link
Member

BurntSushi commented Mar 17, 2021

@Amanieu This was the first time I saw something converted from the old style inline asm to the new style that you and the inline asm group designed. It looks like an order of magnitude improvement in clarity to me. Amazing work. :-)

bors bot added a commit to rust-embedded/riscv that referenced this pull request Aug 12, 2021
86: feat: Use new asm! instead of llvm_asm! r=Disasm a=duskmoon314

The new `asm` macro has been merged into `nightly` for some time, while `llvm_asm` will be gradually deprecated and will not enter `stable`. This PR replaces `llvm_asm` with `asm`, but there are still some minor issues to discuss.

My reference are:
- [asm feature](https://doc.rust-lang.org/unstable-book/library-features/asm.html)
- [arch/cortex-m: change a few llvm_asm!s to asm!s](tock/tock#2092)
- [Convert all uses of llvm_asm! to asm!](rust-lang/stdarch#1052)

---

In the new `asm` feature, there are several options can set to optimize codes. [options](https://doc.rust-lang.org/unstable-book/library-features/asm.html#options-1)

However, I'm not quite sure which options to set. (Sort of newbie to asm in rust)

Co-authored-by: Campbell He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration from llvm_asm! to asm!
3 participants