Add a "raw" option for asm! which ignores format string specifiers
This commit is contained in:
parent
1e13a9bb33
commit
d0443bb7c2
8 changed files with 48 additions and 23 deletions
|
|
@ -94,3 +94,10 @@ pub unsafe fn dont_remove_nonpure() {
|
|||
asm!("", options(nomem));
|
||||
asm!("", options(readonly));
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @raw
|
||||
// CHECK: call void asm sideeffect inteldialect "{} {}", ""()
|
||||
#[no_mangle]
|
||||
pub unsafe fn raw() {
|
||||
asm!("{} {}", options(nostack, nomem, preserves_flags, raw));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue