summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-28 17:35:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-28 17:35:25 -0700
commit7b4dc622c695213fa0ee5f8d0b74502412478375 (patch)
tree355609000a44a217a421f6553d1f7ad6d5a19918 /test
parent5eff8912bcaede2183c6cca08df9c8535b574ad0 (diff)
downloadnasm-7b4dc622c695213fa0ee5f8d0b74502412478375.tar.gz
BR 2039212: Handle indirect far jumps in 64-bit mode
Handle indirect far jumps in 64-bit mode. Default to 64 bit unless overridden, for consistency with other jumps.
Diffstat (limited to 'test')
-rw-r--r--test/far64.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/far64.asm b/test/far64.asm
new file mode 100644
index 00000000..b7a5108e
--- /dev/null
+++ b/test/far64.asm
@@ -0,0 +1,10 @@
+;Testname=test; Arguments=-fbin -ofar64.bin; Files=.stdout .stderr far64.bin
+; BR 2039212
+ bits 64
+
+ call qword far [rax]
+ jmp qword far [rax]
+ call dword far [rax]
+ jmp dword far [rax]
+ call far [rax]
+ jmp far [rax]