insns.pl: use less cantankerous string expansion; better error info
[nasm.git] / test / imm64.asm
bloba1140443f724e7bc57a43d5b9215565d9a802828
1 ;Testname=imm64-O0; Arguments=-O0 -fbin -oimm64.bin; Files=stdout stderr imm64.bin
2 ;Testname=imm64-O1; Arguments=-O1 -fbin -oimm64.bin; Files=stdout stderr imm64.bin
3 ;Testname=imm64-Ox; Arguments=-Ox -fbin -oimm64.bin; Files=stdout stderr imm64.bin
5 bits 64
6 mov rax,11223344h
7 mov rax,dword 11223344h
8 mov eax,11223344h
9 mov [rax],dword 11223344h ; 32-bit operation
10 mov qword [rax],11223344h
11 mov qword [rax],dword 11223344h
13 mov rax,0_ffffffff_8899aabbh
14 mov rax,dword 0_ffffffff_8899aabbh
15 mov eax,0_ffffffff_8899aabbh
16 mov [rax],dword 0_ffffffff_8899aabbh ; 32-bit operation
17 mov qword [rax],0_ffffffff_8899aabbh
18 mov qword [rax],dword 0_ffffffff_8899aabbh
20 mov rax,7fffffffh
21 mov rax,80000000h
22 mov rax,0_ffffffffh
23 mov rax,1_00000000h
24 mov rax,0_ffffffff_7fffffffh
25 mov rax,0_ffffffff_80000000h
27 mov rax,0_11223344_8899aabbh
28 mov rax,dword 0_11223344_8899aabbh
29 mov eax,0_11223344_8899aabbh
30 mov [rax],dword 0_11223344_8899aabbh ; 32-bit operation
31 mov qword [rax],0_11223344_8899aabbh
32 mov qword [rax],dword 0_11223344_8899aabbh
34 mov rax,strict 11223344h
35 mov rax,strict dword 11223344h
36 mov eax,strict 11223344h
37 mov [rax],strict dword 11223344h ; 32-bit operation
38 mov qword [rax],strict 11223344h
39 mov qword [rax],strict dword 11223344h
41 mov rax,strict 0_ffffffff_8899aabbh
42 mov rax,strict dword 0_ffffffff_8899aabbh
43 mov eax,strict 0_ffffffff_8899aabbh
44 mov [rax],strict dword 0_ffffffff_8899aabbh ; 32-bit operation
45 mov qword [rax],strict 0_ffffffff_8899aabbh
46 mov qword [rax],strict dword 0_ffffffff_8899aabbh
48 mov rax,strict 7fffffffh
49 mov rax,strict 80000000h
50 mov rax,strict 0_ffffffffh
51 mov rax,strict 1_00000000h
52 mov rax,strict 0_ffffffff_7fffffffh
53 mov rax,strict 0_ffffffff_80000000h
55 mov rax,strict 0_11223344_8899aabbh
56 mov rax,strict dword 0_11223344_8899aabbh
57 mov eax,strict 0_11223344_8899aabbh
58 mov [rax],strict dword 0_11223344_8899aabbh ; 32-bit operation
59 mov qword [rax],strict 0_11223344_8899aabbh
60 mov qword [rax],strict dword 0_11223344_8899aabbh