rust/tests/ui/asm
Matthias Krüger cb0fb246d5
Rollup merge of #105798 - Amanieu:relax-asm, r=joshtriplett
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 after the template strings.

r? ```````@joshtriplett```````
2023-03-10 21:15:42 +01:00
..
aarch64 Relax ordering rules for asm! operands 2023-01-27 08:15:38 +00:00
x86_64 Revert "Stabilize #![feature(target_feature_11)]" 2023-03-02 13:41:17 +01:00
bad-arch.mirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-arch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-arch.thirunsafeck.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-template.aarch64_mirunsafeck.stderr Relax ordering rules for asm! operands 2023-01-27 08:15:38 +00:00
bad-template.aarch64_thirunsafeck.stderr Relax ordering rules for asm! operands 2023-01-27 08:15:38 +00:00
bad-template.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-template.x86_64_mirunsafeck.stderr Relax ordering rules for asm! operands 2023-01-27 08:15:38 +00:00
bad-template.x86_64_thirunsafeck.stderr Relax ordering rules for asm! operands 2023-01-27 08:15:38 +00:00
generic-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline-syntax.arm.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline-syntax.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inline-syntax.x86_64.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72570.rs Remove save-analysis. 2023-02-16 15:14:45 +11:00
issue-72570.stderr Remove save-analysis. 2023-02-16 15:14:45 +11:00
issue-85247.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-85247.rwpi.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87802.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87802.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-89305.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-89305.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92378.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-97490.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99071.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99071.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99122-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99122.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99122.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
may_unwind.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-ffi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-ffi.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-unused.aarch64.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-unused.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions-unused.x86_64.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-functions.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-invalid-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
naked-invalid-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
named-asm-labels.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
named-asm-labels.s Move /src/test to /tests 2023-01-11 09:32:08 +00:00
named-asm-labels.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
noreturn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reg-conflict.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reg-conflict.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-check-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-check-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-check-4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-check-4.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
unpretty-expanded.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unpretty-expanded.stdout Move /src/test to /tests 2023-01-11 09:32:08 +00:00