nasm/test/jmp64.asm
H. Peter Anvin c3bfc7f643 Clean up JMP/CALL patterns, especially for 64 bits
Clean up JMP/CALL patterns so they don't disassemble quite so uglily.
Fix a CALL pattern which would have incorrectly generated a (harmless)
REX.W prefix.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 12:13:50 -08:00

20 lines
357 B
NASM

;Testname=test; Arguments=-fbin -ojmp64.bin; Files=stdout stderr jmp64.bin
bits 64
jmp rcx
jmp [rax]
jmp qword [rax]
jmp near [rax]
jmp near qword [rax]
jmp far [rax]
jmp far dword [rax]
jmp far qword [rax]
call rcx
call [rax]
call qword [rax]
call near [rax]
call near qword [rax]
call far [rax]
call far dword [rax]
call far qword [rax]