xref: /llvm-project/llvm/test/MC/X86/raoint-64-intel.s (revision c394d97ed3c10a8a77742296248e68c654f37c45)
1// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s
2
3// CHECK:      aadd qword ptr [rbp + 8*r14 + 268435456], r9
4// CHECK: encoding: [0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
5               aadd qword ptr [rbp + 8*r14 + 268435456], r9
6
7// CHECK:      aadd qword ptr [r8 + 4*rax + 291], r9
8// CHECK: encoding: [0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
9               aadd qword ptr [r8 + 4*rax + 291], r9
10
11// CHECK:      aadd qword ptr [rip], r9
12// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
13               aadd qword ptr [rip], r9
14
15// CHECK:      aadd qword ptr [2*rbp - 512], r9
16// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
17               aadd qword ptr [2*rbp - 512], r9
18
19// CHECK:      aadd qword ptr [rcx + 2032], r9
20// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
21               aadd qword ptr [rcx + 2032], r9
22
23// CHECK:      aadd qword ptr [rdx - 2048], r9
24// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
25               aadd qword ptr [rdx - 2048], r9
26
27// CHECK:      aadd dword ptr [esp + 8*esi + 268435456], ebx
28// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
29               aadd dword ptr [esp + 8*esi + 268435456], ebx
30
31// CHECK:      aadd dword ptr [edi + 4*eax + 291], ebx
32// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
33               aadd dword ptr [edi + 4*eax + 291], ebx
34
35// CHECK:      aadd dword ptr [eax], ebx
36// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x18]
37               aadd dword ptr [eax], ebx
38
39// CHECK:      aadd dword ptr [2*ebp - 512], ebx
40// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
41               aadd dword ptr [2*ebp - 512], ebx
42
43// CHECK:      aadd dword ptr [ecx + 2032], ebx
44// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
45               aadd dword ptr [ecx + 2032], ebx
46
47// CHECK:      aadd dword ptr [edx - 2048], ebx
48// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
49               aadd dword ptr [edx - 2048], ebx
50
51// CHECK:      aand qword ptr [rbp + 8*r14 + 268435456], r9
52// CHECK: encoding: [0x66,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
53               aand qword ptr [rbp + 8*r14 + 268435456], r9
54
55// CHECK:      aand qword ptr [r8 + 4*rax + 291], r9
56// CHECK: encoding: [0x66,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
57               aand qword ptr [r8 + 4*rax + 291], r9
58
59// CHECK:      aand qword ptr [rip], r9
60// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
61               aand qword ptr [rip], r9
62
63// CHECK:      aand qword ptr [2*rbp - 512], r9
64// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
65               aand qword ptr [2*rbp - 512], r9
66
67// CHECK:      aand qword ptr [rcx + 2032], r9
68// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
69               aand qword ptr [rcx + 2032], r9
70
71// CHECK:      aand qword ptr [rdx - 2048], r9
72// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
73               aand qword ptr [rdx - 2048], r9
74
75// CHECK:      aand dword ptr [esp + 8*esi + 268435456], ebx
76// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
77               aand dword ptr [esp + 8*esi + 268435456], ebx
78
79// CHECK:      aand dword ptr [edi + 4*eax + 291], ebx
80// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
81               aand dword ptr [edi + 4*eax + 291], ebx
82
83// CHECK:      aand dword ptr [eax], ebx
84// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x18]
85               aand dword ptr [eax], ebx
86
87// CHECK:      aand dword ptr [2*ebp - 512], ebx
88// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
89               aand dword ptr [2*ebp - 512], ebx
90
91// CHECK:      aand dword ptr [ecx + 2032], ebx
92// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
93               aand dword ptr [ecx + 2032], ebx
94
95// CHECK:      aand dword ptr [edx - 2048], ebx
96// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
97               aand dword ptr [edx - 2048], ebx
98
99// CHECK:      aor qword ptr [rbp + 8*r14 + 268435456], r9
100// CHECK: encoding: [0xf2,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
101               aor qword ptr [rbp + 8*r14 + 268435456], r9
102
103// CHECK:      aor qword ptr [r8 + 4*rax + 291], r9
104// CHECK: encoding: [0xf2,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
105               aor qword ptr [r8 + 4*rax + 291], r9
106
107// CHECK:      aor qword ptr [rip], r9
108// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
109               aor qword ptr [rip], r9
110
111// CHECK:      aor qword ptr [2*rbp - 512], r9
112// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
113               aor qword ptr [2*rbp - 512], r9
114
115// CHECK:      aor qword ptr [rcx + 2032], r9
116// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
117               aor qword ptr [rcx + 2032], r9
118
119// CHECK:      aor qword ptr [rdx - 2048], r9
120// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
121               aor qword ptr [rdx - 2048], r9
122
123// CHECK:      aor dword ptr [esp + 8*esi + 268435456], ebx
124// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
125               aor dword ptr [esp + 8*esi + 268435456], ebx
126
127// CHECK:      aor dword ptr [edi + 4*eax + 291], ebx
128// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
129               aor dword ptr [edi + 4*eax + 291], ebx
130
131// CHECK:      aor dword ptr [eax], ebx
132// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x18]
133               aor dword ptr [eax], ebx
134
135// CHECK:      aor dword ptr [2*ebp - 512], ebx
136// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
137               aor dword ptr [2*ebp - 512], ebx
138
139// CHECK:      aor dword ptr [ecx + 2032], ebx
140// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
141               aor dword ptr [ecx + 2032], ebx
142
143// CHECK:      aor dword ptr [edx - 2048], ebx
144// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
145               aor dword ptr [edx - 2048], ebx
146
147// CHECK:      axor qword ptr [rbp + 8*r14 + 268435456], r9
148// CHECK: encoding: [0xf3,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]
149               axor qword ptr [rbp + 8*r14 + 268435456], r9
150
151// CHECK:      axor qword ptr [r8 + 4*rax + 291], r9
152// CHECK: encoding: [0xf3,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]
153               axor qword ptr [r8 + 4*rax + 291], r9
154
155// CHECK:      axor qword ptr [rip], r9
156// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]
157               axor qword ptr [rip], r9
158
159// CHECK:      axor qword ptr [2*rbp - 512], r9
160// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]
161               axor qword ptr [2*rbp - 512], r9
162
163// CHECK:      axor qword ptr [rcx + 2032], r9
164// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]
165               axor qword ptr [rcx + 2032], r9
166
167// CHECK:      axor qword ptr [rdx - 2048], r9
168// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]
169               axor qword ptr [rdx - 2048], r9
170
171// CHECK:      axor dword ptr [esp + 8*esi + 268435456], ebx
172// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]
173               axor dword ptr [esp + 8*esi + 268435456], ebx
174
175// CHECK:      axor dword ptr [edi + 4*eax + 291], ebx
176// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]
177               axor dword ptr [edi + 4*eax + 291], ebx
178
179// CHECK:      axor dword ptr [eax], ebx
180// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x18]
181               axor dword ptr [eax], ebx
182
183// CHECK:      axor dword ptr [2*ebp - 512], ebx
184// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]
185               axor dword ptr [2*ebp - 512], ebx
186
187// CHECK:      axor dword ptr [ecx + 2032], ebx
188// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]
189               axor dword ptr [ecx + 2032], ebx
190
191// CHECK:      axor dword ptr [edx - 2048], ebx
192// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]
193               axor dword ptr [edx - 2048], ebx
194