Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / X86 / x86-64-rao-int-intel.s
blobaa0a848b3225e52e1844460c3f02c57be01784df
1 // RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s
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
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
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
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
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
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
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
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
35 // CHECK: aadd dword ptr [eax], ebx
36 // CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x18]
37 aadd dword ptr [eax], ebx
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
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
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
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
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
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
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
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
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
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
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
83 // CHECK: aand dword ptr [eax], ebx
84 // CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x18]
85 aand dword ptr [eax], ebx
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
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
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
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
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
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
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
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
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
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
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
131 // CHECK: aor dword ptr [eax], ebx
132 // CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x18]
133 aor dword ptr [eax], ebx
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
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
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
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
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
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
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
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
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
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
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
179 // CHECK: axor dword ptr [eax], ebx
180 // CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x18]
181 axor dword ptr [eax], ebx
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
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
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