1 # RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT
2 # RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL
4 # ATT: aaddq %r9, 268435456(%rbp,%r14,8)
5 # INTEL: aadd qword ptr [rbp + 8*r14 + 268435456], r9
6 0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10
8 # ATT: aaddq %r9, 291(%r8,%rax,4)
9 # INTEL: aadd qword ptr [r8 + 4*rax + 291], r9
10 0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00
12 # ATT: aaddq %r9, (%rip)
13 # INTEL: aadd qword ptr [rip], r9
14 0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00
16 # ATT: aaddq %r9, -512(,%rbp,2)
17 # INTEL: aadd qword ptr [2*rbp - 512], r9
18 0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff
20 # ATT: aaddq %r9, 2032(%rcx)
21 # INTEL: aadd qword ptr [rcx + 2032], r9
22 0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00
24 # ATT: aaddq %r9, -2048(%rdx)
25 # INTEL: aadd qword ptr [rdx - 2048], r9
26 0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff
28 # ATT: aaddl %ebx, 268435456(%esp,%esi,8)
29 # INTEL: aadd dword ptr [esp + 8*esi + 268435456], ebx
30 0x67,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10
32 # ATT: aaddl %ebx, 291(%edi,%eax,4)
33 # INTEL: aadd dword ptr [edi + 4*eax + 291], ebx
34 0x67,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00
36 # ATT: aaddl %ebx, (%eax)
37 # INTEL: aadd dword ptr [eax], ebx
38 0x67,0x0f,0x38,0xfc,0x18
40 # ATT: aaddl %ebx, -512(,%ebp,2)
41 # INTEL: aadd dword ptr [2*ebp - 512], ebx
42 0x67,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff
44 # ATT: aaddl %ebx, 2032(%ecx)
45 # INTEL: aadd dword ptr [ecx + 2032], ebx
46 0x67,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00
48 # ATT: aaddl %ebx, -2048(%edx)
49 # INTEL: aadd dword ptr [edx - 2048], ebx
50 0x67,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff
52 # ATT: aandq %r9, 268435456(%rbp,%r14,8)
53 # INTEL: aand qword ptr [rbp + 8*r14 + 268435456], r9
54 0x66,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10
56 # ATT: aandq %r9, 291(%r8,%rax,4)
57 # INTEL: aand qword ptr [r8 + 4*rax + 291], r9
58 0x66,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00
60 # ATT: aandq %r9, (%rip)
61 # INTEL: aand qword ptr [rip], r9
62 0x66,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00
64 # ATT: aandq %r9, -512(,%rbp,2)
65 # INTEL: aand qword ptr [2*rbp - 512], r9
66 0x66,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff
68 # ATT: aandq %r9, 2032(%rcx)
69 # INTEL: aand qword ptr [rcx + 2032], r9
70 0x66,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00
72 # ATT: aandq %r9, -2048(%rdx)
73 # INTEL: aand qword ptr [rdx - 2048], r9
74 0x66,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff
76 # ATT: aandl %ebx, 268435456(%esp,%esi,8)
77 # INTEL: aand dword ptr [esp + 8*esi + 268435456], ebx
78 0x67,0x66,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10
80 # ATT: aandl %ebx, 291(%edi,%eax,4)
81 # INTEL: aand dword ptr [edi + 4*eax + 291], ebx
82 0x67,0x66,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00
84 # ATT: aandl %ebx, (%eax)
85 # INTEL: aand dword ptr [eax], ebx
86 0x67,0x66,0x0f,0x38,0xfc,0x18
88 # ATT: aandl %ebx, -512(,%ebp,2)
89 # INTEL: aand dword ptr [2*ebp - 512], ebx
90 0x67,0x66,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff
92 # ATT: aandl %ebx, 2032(%ecx)
93 # INTEL: aand dword ptr [ecx + 2032], ebx
94 0x67,0x66,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00
96 # ATT: aandl %ebx, -2048(%edx)
97 # INTEL: aand dword ptr [edx - 2048], ebx
98 0x67,0x66,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff
100 # ATT: aorq %r9, 268435456(%rbp,%r14,8)
101 # INTEL: aor qword ptr [rbp + 8*r14 + 268435456], r9
102 0xf2,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10
104 # ATT: aorq %r9, 291(%r8,%rax,4)
105 # INTEL: aor qword ptr [r8 + 4*rax + 291], r9
106 0xf2,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00
108 # ATT: aorq %r9, (%rip)
109 # INTEL: aor qword ptr [rip], r9
110 0xf2,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00
112 # ATT: aorq %r9, -512(,%rbp,2)
113 # INTEL: aor qword ptr [2*rbp - 512], r9
114 0xf2,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff
116 # ATT: aorq %r9, 2032(%rcx)
117 # INTEL: aor qword ptr [rcx + 2032], r9
118 0xf2,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00
120 # ATT: aorq %r9, -2048(%rdx)
121 # INTEL: aor qword ptr [rdx - 2048], r9
122 0xf2,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff
124 # ATT: aorl %ebx, 268435456(%esp,%esi,8)
125 # INTEL: aor dword ptr [esp + 8*esi + 268435456], ebx
126 0x67,0xf2,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10
128 # ATT: aorl %ebx, 291(%edi,%eax,4)
129 # INTEL: aor dword ptr [edi + 4*eax + 291], ebx
130 0x67,0xf2,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00
132 # ATT: aorl %ebx, (%eax)
133 # INTEL: aor dword ptr [eax], ebx
134 0x67,0xf2,0x0f,0x38,0xfc,0x18
136 # ATT: aorl %ebx, -512(,%ebp,2)
137 # INTEL: aor dword ptr [2*ebp - 512], ebx
138 0x67,0xf2,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff
140 # ATT: aorl %ebx, 2032(%ecx)
141 # INTEL: aor dword ptr [ecx + 2032], ebx
142 0x67,0xf2,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00
144 # ATT: aorl %ebx, -2048(%edx)
145 # INTEL: aor dword ptr [edx - 2048], ebx
146 0x67,0xf2,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff
148 # ATT: axorq %r9, 268435456(%rbp,%r14,8)
149 # INTEL: axor qword ptr [rbp + 8*r14 + 268435456], r9
150 0xf3,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10
152 # ATT: axorq %r9, 291(%r8,%rax,4)
153 # INTEL: axor qword ptr [r8 + 4*rax + 291], r9
154 0xf3,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00
156 # ATT: axorq %r9, (%rip)
157 # INTEL: axor qword ptr [rip], r9
158 0xf3,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00
160 # ATT: axorq %r9, -512(,%rbp,2)
161 # INTEL: axor qword ptr [2*rbp - 512], r9
162 0xf3,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff
164 # ATT: axorq %r9, 2032(%rcx)
165 # INTEL: axor qword ptr [rcx + 2032], r9
166 0xf3,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00
168 # ATT: axorq %r9, -2048(%rdx)
169 # INTEL: axor qword ptr [rdx - 2048], r9
170 0xf3,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff
172 # ATT: axorl %ebx, 268435456(%esp,%esi,8)
173 # INTEL: axor dword ptr [esp + 8*esi + 268435456], ebx
174 0x67,0xf3,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10
176 # ATT: axorl %ebx, 291(%edi,%eax,4)
177 # INTEL: axor dword ptr [edi + 4*eax + 291], ebx
178 0x67,0xf3,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00
180 # ATT: axorl %ebx, (%eax)
181 # INTEL: axor dword ptr [eax], ebx
182 0x67,0xf3,0x0f,0x38,0xfc,0x18
184 # ATT: axorl %ebx, -512(,%ebp,2)
185 # INTEL: axor dword ptr [2*ebp - 512], ebx
186 0x67,0xf3,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff
188 # ATT: axorl %ebx, 2032(%ecx)
189 # INTEL: axor dword ptr [ecx + 2032], ebx
190 0x67,0xf3,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00
192 # ATT: axorl %ebx, -2048(%edx)
193 # INTEL: axor dword ptr [edx - 2048], ebx
194 0x67,0xf3,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff