Skip to content

Sync from rust 2024/03/08 #467

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

Closed
wants to merge 6 commits into from
Closed

Sync from rust 2024/03/08 #467

wants to merge 6 commits into from

Conversation

antoyo
Copy link
Contributor

@antoyo antoyo commented Mar 8, 2024

No description provided.

nbdd0121 and others added 6 commits February 24, 2024 18:50
Add asm goto support to `asm!`

Tracking issue: #119364

This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto).

Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary.

r? ``@Amanieu``
cc ``@ojeda``
@antoyo antoyo mentioned this pull request Mar 8, 2024
@antoyo
Copy link
Contributor Author

antoyo commented Mar 10, 2024

Superceeded by #468.

@antoyo antoyo closed this Mar 10, 2024
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.

4 participants