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

Relax ordering rules for asm! operands #105798

Merged
merged 1 commit into from
Mar 11, 2023
Merged

Commits on Jan 27, 2023

  1. Relax ordering rules for asm! operands

    The `asm!` and `global_asm!` macros require their operands to appear
    strictly in the following order:
    - Template strings
    - Positional operands
    - Named operands
    - Explicit register operands
    - `clobber_abi`
    - `options`
    
    This is overly strict and can be inconvienent when building complex
    `asm!` statements with macros. This PR relaxes the ordering requirements
    as follows:
    - Template strings must still come before all other operands.
    - Positional operands must still come before named and explicit register
    operands.
    - Named and explicit register operands can be freely mixed.
    - `options` and `clobber_abi` can appear in any position.
    Amanieu committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    52f7a21 View commit details
    Browse the repository at this point in the history