aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2018-02-20 12:40:11 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2018-02-20 12:40:11 -0800
commit4dbf3a96a4b17add396ea4592a7fde7cb8083d52 (patch)
treef515b64b818a27bddac200cb8428cc47c8297a76 /test
parent99d45c850e3962e4c89839dd8531de1c080b3ee7 (diff)
parentf71820d6055373c9b9381615e28a28f307bb2df4 (diff)
downloadnasm-4dbf3a96a4b17add396ea4592a7fde7cb8083d52.tar.gz
nasm-4dbf3a96a4b17add396ea4592a7fde7cb8083d52.tar.xz
nasm-4dbf3a96a4b17add396ea4592a7fde7cb8083d52.zip
Merge remote-tracking branch 'origin/nasm-2.13.xx'
Resolved Conflicts: version Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/ret.asm56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/ret.asm b/test/ret.asm
new file mode 100644
index 00000000..a6aa5332
--- /dev/null
+++ b/test/ret.asm
@@ -0,0 +1,56 @@
+ ;; All the flavors of RET
+%ifndef ERROR
+ %define ERROR 0
+%endif
+
+
+ bits 16
+
+ ret
+ retn
+ retf
+ retw
+ retnw
+ retfw
+ retd
+ retnd
+ retfd
+%if ERROR
+ retq
+ retnq
+ retfq
+%endif
+
+ bits 32
+
+ ret
+ retn
+ retf
+ retw
+ retnw
+ retfw
+ retd
+ retnd
+ retfd
+%if ERROR
+ retq
+ retnq
+ retfq
+%endif
+
+ bits 64
+
+ ret
+ retn
+ retf ; Probably should have been RETFQ, but: legacy...
+ retw
+ retnw
+ retfw
+%if ERROR
+ retd
+ retnd
+%endif
+ retfd
+ retq
+ retnq
+ retfq