3 # REX prefix and addressing modes.
13 add rax
,0xfffffffff4332211
34 REP MOVSQ
#[RSI],[RDI]
36 REP MOVSQ
#[RSI],[RDI]
43 MOV RAX
,0x1122334455667788
44 MOV
R8,0x1122334455667788
49 ADD EAX
,[0x22222222+RIP
]
75 ADD DWORD PTR
[RAX
],0x11
76 ADD QWORD PTR
[RAX
],0x11
77 ADD DWORD PTR
[R8],0x11
78 ADD DWORD PTR
[RCX+RAX
*4],0x11
79 ADD DWORD PTR
[R9+RAX
*4],0x11
80 ADD DWORD PTR
[RCX+
R8*4],0x11
81 ADD DWORD PTR
[0x22222222+RIP
],0x33
82 ADD QWORD PTR
[RIP+
0x22222222],0x33
83 ADD DWORD PTR
[RIP+
0x22222222],0x33333333
84 ADD QWORD PTR
[RIP+
0x22222222],0x33333333
85 ADD DWORD PTR
[RAX
*8+0x22222222],0x33
86 ADD DWORD PTR
[RAX+
0x22222222],0x33
87 ADD DWORD PTR
[RAX+
0x22222222],0x33
88 ADD DWORD PTR
[R8+RBP
*8],0x33
89 ADD DWORD PTR
[0x22222222],0x33
91 MOVABS AL
,[0x8877665544332211]
92 MOVABS EAX
,[0x8877665544332211]
93 MOVABS
[0x8877665544332211],AL
94 MOVABS
[0x8877665544332211],EAX
95 MOVABS RAX
,[0x8877665544332211]
96 MOVABS
[0x8877665544332211],RAX
104 #testcase for symbol references.
106 #immediates - various sizes:
115 #absolute 64bit addressing
118 #absolute 32bit addressing
122 mov symbol
(%rax
), %eax
125 mov symbol
(%rip
), %eax
127 .intel_syntax noprefix
129 #immediates - various sizes:
136 mov eax
, high part symbol
137 mov eax
, low part symbol
141 #absolute 64bit addressing
144 #absolute 32bit addressing
148 mov eax
, [rax+symbol
]
151 mov eax
, [rip+symbol
]
153 # Get a good alignment.