summaryrefslogtreecommitdiffstats
path: root/src/test/pretty/asm.pp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
commita4b7ed7a42c716ab9f05e351f003d589124fd55d (patch)
treeb620cd3f223850b28716e474e80c58059dca5dd4 /src/test/pretty/asm.pp
parentAdding upstream version 1.67.1+dfsg1. (diff)
downloadrustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz
rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/pretty/asm.pp')
-rw-r--r--src/test/pretty/asm.pp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/pretty/asm.pp b/src/test/pretty/asm.pp
deleted file mode 100644
index 5eade2933..000000000
--- a/src/test/pretty/asm.pp
+++ /dev/null
@@ -1,34 +0,0 @@
-#![feature(prelude_import)]
-#![no_std]
-#[prelude_import]
-use ::std::prelude::rust_2015::*;
-#[macro_use]
-extern crate std;
-// pretty-mode:expanded
-// pp-exact:asm.pp
-// only-x86_64
-
-use std::arch::asm;
-
-pub fn main() {
- let a: i32;
- let mut b = 4i32;
- unsafe {
- asm!("");
- asm!("");
- asm!("", options(nomem, nostack));
- asm!("{0}", in(reg) 4);
- asm!("{0}", out(reg) a);
- asm!("{0}", inout(reg) b);
- asm!("{0} {1}", out(reg) _, inlateout(reg) b => _);
- asm!("", out("al") _, lateout("rcx") _);
- asm!("inst1\ninst2");
- asm!("inst1 {0}, 42\ninst2 {1}, 24", in(reg) a, out(reg) b);
- asm!("inst2 {1}, 24\ninst1 {0}, 42", in(reg) a, out(reg) b);
- asm!("inst1 {0}, 42\ninst2 {1}, 24", in(reg) a, out(reg) b);
- asm!("inst1\ninst2");
- asm!("inst1\ninst2");
- asm!("inst1\n\tinst2");
- asm!("inst1\ninst2\ninst3\ninst4");
- }
-}