nasm/travis/test/imm64.asm
Cyrill Gorcunov 752c72e204 test: nasm-t -- Add imm64
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:46 +03:00

57 lines
1.7 KiB
NASM

bits 64
mov rax,11223344h
mov rax,dword 11223344h
mov eax,11223344h
mov [rax],dword 11223344h ; 32-bit operation
mov qword [rax],11223344h
mov qword [rax],dword 11223344h
mov rax,0_ffffffff_8899aabbh
mov rax,dword 0_ffffffff_8899aabbh
mov eax,0_ffffffff_8899aabbh
mov [rax],dword 0_ffffffff_8899aabbh ; 32-bit operation
mov qword [rax],0_ffffffff_8899aabbh
mov qword [rax],dword 0_ffffffff_8899aabbh
mov rax,7fffffffh
mov rax,80000000h
mov rax,0_ffffffffh
mov rax,1_00000000h
mov rax,0_ffffffff_7fffffffh
mov rax,0_ffffffff_80000000h
mov rax,0_11223344_8899aabbh
mov rax,dword 0_11223344_8899aabbh
mov eax,0_11223344_8899aabbh
mov [rax],dword 0_11223344_8899aabbh ; 32-bit operation
mov qword [rax],0_11223344_8899aabbh
mov qword [rax],dword 0_11223344_8899aabbh
mov rax,strict 11223344h
mov rax,strict dword 11223344h
mov eax,strict 11223344h
mov [rax],strict dword 11223344h ; 32-bit operation
mov qword [rax],strict 11223344h
mov qword [rax],strict dword 11223344h
mov rax,strict 0_ffffffff_8899aabbh
mov rax,strict dword 0_ffffffff_8899aabbh
mov eax,strict 0_ffffffff_8899aabbh
mov [rax],strict dword 0_ffffffff_8899aabbh ; 32-bit operation
mov qword [rax],strict 0_ffffffff_8899aabbh
mov qword [rax],strict dword 0_ffffffff_8899aabbh
mov rax,strict 7fffffffh
mov rax,strict 80000000h
mov rax,strict 0_ffffffffh
mov rax,strict 1_00000000h
mov rax,strict 0_ffffffff_7fffffffh
mov rax,strict 0_ffffffff_80000000h
mov rax,strict 0_11223344_8899aabbh
mov rax,strict dword 0_11223344_8899aabbh
mov eax,strict 0_11223344_8899aabbh
mov [rax],strict dword 0_11223344_8899aabbh ; 32-bit operation
mov qword [rax],strict 0_11223344_8899aabbh
mov qword [rax],strict dword 0_11223344_8899aabbh