phash.ph: yet another attempt at getting Perl to behave, arithmetically
[nasm/avx512.git] / test / riprel.asm
blob3e4e6a3849bcfd997340f532ba60a1c61b29e3c8
1 bits 64
3 default abs
5 mov rax,[foo]
6 mov rax,[123456789abcdef0h]
7 mov rbx,[foo]
8 mov rax,[dword foo]
9 mov rbx,[dword foo]
10 mov rax,[qword foo]
11 mov rax,[rel foo]
12 mov rbx,[rel foo]
13 mov rax,[rel dword foo]
14 mov rax,[rel qword foo]
15 mov rax,[abs foo]
16 mov rbx,[abs foo]
17 mov rax,[abs dword foo]
18 mov rax,[abs qword foo]
20 mov rax,[es:foo]
21 mov rax,[es:123456789abcdef0h]
22 mov rbx,[es:foo]
23 mov rax,[dword es:foo]
24 mov rbx,[dword es:foo]
25 mov rax,[qword es:foo]
26 mov rax,[rel es:foo]
27 mov rbx,[rel es:foo]
28 mov rax,[rel dword es:foo]
29 mov rax,[rel qword es:foo]
30 mov rax,[abs es:foo]
31 mov rbx,[abs es:foo]
32 mov rax,[abs dword es:foo]
33 mov rax,[abs qword es:foo]
35 mov rax,[fs:foo]
36 mov rax,[fs:123456789abcdef0h]
37 mov rbx,[fs:foo]
38 mov rax,[dword fs:foo]
39 mov rbx,[dword fs:foo]
40 mov rax,[qword fs:foo]
41 mov rax,[rel fs:foo]
42 mov rbx,[rel fs:foo]
43 mov rax,[rel dword fs:foo]
44 mov rax,[rel qword fs:foo]
45 mov rax,[abs fs:foo]
46 mov rbx,[abs fs:foo]
47 mov rax,[abs dword fs:foo]
48 mov rax,[abs qword fs:foo]
50 default rel
52 mov rax,[foo]
53 mov rax,[123456789abcdef0h]
54 mov rbx,[foo]
55 mov rax,[dword foo]
56 mov rbx,[dword foo]
57 mov rax,[qword foo]
58 mov rax,[rel foo]
59 mov rbx,[rel foo]
60 mov rax,[rel dword foo]
61 mov rax,[rel qword foo]
62 mov rax,[abs foo]
63 mov rbx,[abs foo]
64 mov rax,[abs dword foo]
65 mov rax,[abs qword foo]
67 mov rax,[es:foo]
68 mov rax,[es:123456789abcdef0h]
69 mov rbx,[es:foo]
70 mov rax,[dword es:foo]
71 mov rbx,[dword es:foo]
72 mov rax,[qword es:foo]
73 mov rax,[rel es:foo]
74 mov rbx,[rel es:foo]
75 mov rax,[rel dword es:foo]
76 mov rax,[rel qword es:foo]
77 mov rax,[abs es:foo]
78 mov rbx,[abs es:foo]
79 mov rax,[abs dword es:foo]
80 mov rax,[abs qword es:foo]
82 mov rax,[fs:foo]
83 mov rax,[fs:123456789abcdef0h]
84 mov rbx,[fs:foo]
85 mov rax,[dword fs:foo]
86 mov rbx,[dword fs:foo]
87 mov rax,[qword fs:foo]
88 mov rax,[rel fs:foo]
89 mov rbx,[rel fs:foo]
90 mov rax,[rel dword fs:foo]
91 mov rax,[rel qword fs:foo]
92 mov rax,[abs fs:foo]
93 mov rbx,[abs fs:foo]
94 mov rax,[abs dword fs:foo]
95 mov rax,[abs qword fs:foo]
97 section .data
98 foo equ $