about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-08 08:19:17 +0100
committerGitHub <noreply@github.com>2024-03-08 08:19:17 +0100
commit568d3949c16c0f7d9d872fafc8c2115931cce0c6 (patch)
treefd7bedf677f4595ad7045aaea3bd68bd80f905ed /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parent0975461837bc9c4d065ac13ee56f7fbd0a737f38 (diff)
parentc7607b024e601649e781318deae17d6ab0686b59 (diff)
downloadrust-568d3949c16c0f7d9d872fafc8c2115931cce0c6.tar.gz
rust-568d3949c16c0f7d9d872fafc8c2115931cce0c6.zip
Rollup merge of #119365 - nbdd0121:asm-goto, r=Amanieu
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``
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions