Skip to content

feat: Use new asm! instead of llvm_asm! #86

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

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

duskmoon314
Copy link
Contributor

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:


In the new asm feature, there are several options can set to optimize codes. options

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

@duskmoon314 duskmoon314 requested a review from a team as a code owner August 11, 2021 14:44
@Disasm
Copy link
Member

Disasm commented Aug 11, 2021

Thank you! Could you also add a change log entry?

@duskmoon314
Copy link
Contributor Author

@Disasm ok, done

Copy link
Member

@dkhayes117 dkhayes117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me overall.

CHANGELOG.md Outdated
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- - Use new `asm!` instead of `llvm_asm!`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the double bullet points ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, my mistake (|| -_-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Disasm
Copy link
Member

Disasm commented Aug 12, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 12, 2021

@bors bors bot merged commit 5f386ef into rust-embedded:master Aug 12, 2021
bors bot added a commit that referenced this pull request Jan 8, 2022
91: Add inline-asm build to CI, fix build r=dkhayes117 a=Disasm

#86 introduced new `asm!` syntax which is enabled with the `inline-asm` feature. However, it doesn't work with current nightly since `asm_const` unstable feature is not enabled. This PR fixes the problem and adds automatic checks to CI.

Co-authored-by: Vadim Kaushan <[email protected]>
romancardenas pushed a commit that referenced this pull request Nov 17, 2023
86: Update CHANGELOG.md r=almindor a=parkero

Adds currently unreleased changes for #85 

Co-authored-by: parkero <[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.

3 participants