summaryrefslogtreecommitdiff
path: root/test/nop.asm
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-05-15 22:27:48 +0100
committerAnas Nashif <anas.nashif@intel.com>2012-05-15 22:27:48 +0100
commitb9fad1ab2ad3bd87bff05c4688c978d582ada438 (patch)
tree4a373f8dd867d20e67510de7cfe447a4b58c1a70 /test/nop.asm
parent65c26d26fb72cec0d43d199c72ed27513d17f4c9 (diff)
downloadnasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.tar.gz
nasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.tar.bz2
nasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.zip
Upstream version 2.08rc7
Diffstat (limited to 'test/nop.asm')
-rw-r--r--test/nop.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/nop.asm b/test/nop.asm
new file mode 100644
index 0000000..71b7f7b
--- /dev/null
+++ b/test/nop.asm
@@ -0,0 +1,17 @@
+;Testname=unoptimized; Arguments=-fbin -onop.bin; Files=stdout stderr nop.bin
+;Testname=optimized; Arguments=-fbin -onop.bin -Ox; Files=stdout stderr nop.bin
+
+ bits 64
+
+ nop
+ o64 nop
+ pause
+ o64 pause
+
+ xchg ax,ax
+ xchg eax,eax
+ xchg rax,rax
+
+ rep xchg ax,ax
+ rep xchg eax,eax
+ rep xchg rax,rax