1	bits 64
2
3	default abs	; default abs, except for explicit rel
4
5	mov rax,[foo]
6	mov rax,[qword 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]		; rel
12	mov rbx,[rel foo]		; rel
13	mov rax,[rel dword foo]		; rel
14	;mov rax,[rel qword foo]	; illegal
15	mov rax,[abs foo]
16	mov rbx,[abs foo]
17	mov rax,[abs dword foo]
18	mov rax,[abs qword foo]
19
20	mov rax,[es:foo]
21	mov rax,[qword 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]		; rel
27	mov rbx,[rel es:foo]		; rel
28	mov rax,[rel dword es:foo]	; rel
29	;mov rax,[rel qword es:foo]	; illegal
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]
34
35	mov rax,[fs:foo]
36	mov rax,[qword 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]		; rel
42	mov rbx,[rel fs:foo]		; rel
43	mov rax,[rel dword fs:foo]	; rel
44	;mov rax,[rel qword fs:foo]	; illegal
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]
49
50	mov rax,[rbx]
51	mov rax,[rel rbx]
52	mov rax,[abs rbx]
53
54	default rel
55
56	; all of these are default rel, except for 64-bit displacements
57	mov rax,[foo]
58	mov rax,[qword 123456789abcdef0h]	; abs
59	mov rbx,[foo]
60	mov rax,[dword foo]
61	mov rbx,[dword foo]
62	mov rax,[qword foo]		; abs
63	mov rax,[rel foo]
64	mov rbx,[rel foo]
65	mov rax,[rel dword foo]
66	;mov rax,[rel qword foo]	; illegal
67	mov rax,[abs foo]
68	mov rbx,[abs foo]
69	mov rax,[abs dword foo]
70	mov rax,[abs qword foo]
71
72	; all of these are default rel, except for 64-bit displacements
73	mov rax,[es:foo]
74	mov rax,[qword es:123456789abcdef0h]
75	mov rbx,[es:foo]
76	mov rax,[dword es:foo]
77	mov rbx,[dword es:foo]
78	mov rax,[qword es:foo]
79	mov rax,[rel es:foo]		; rel
80	mov rbx,[rel es:foo]		; rel
81	mov rax,[rel dword es:foo]	; rel
82	;mov rax,[rel qword es:foo]	; illegal
83	mov rax,[abs es:foo]
84	mov rbx,[abs es:foo]
85	mov rax,[abs dword es:foo]
86	mov rax,[abs qword es:foo]
87
88	; all of these are abs due to fs:, except for explicit rel
89	mov rax,[fs:foo]
90	mov rax,[qword fs:123456789abcdef0h]
91	mov rbx,[fs:foo]
92	mov rax,[dword fs:foo]
93	mov rbx,[dword fs:foo]
94	mov rax,[qword fs:foo]
95	mov rax,[rel fs:foo]		; rel
96	mov rbx,[rel fs:foo]		; rel
97	mov rax,[rel dword fs:foo]	; rel
98	;mov rax,[rel qword fs:foo]	; illegal
99	mov rax,[abs fs:foo]
100	mov rbx,[abs fs:foo]
101	mov rax,[abs dword fs:foo]
102	mov rax,[abs qword fs:foo]
103
104	mov rax,[rbx]
105	mov rax,[rel rbx]
106	mov rax,[abs rbx]
107
108	section .data
109foo	equ $
110	
111