xref: /aosp_15_r20/external/llvm/test/MC/Disassembler/X86/x86-64.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker# Coverage
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker# CHECK: vcmptrue_usps
6*9880d681SAndroid Build Coastguard Worker0xc5 0x04 0xc2 0xc7 0x1f
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker# CHECK: vcmptrue_uspd
9*9880d681SAndroid Build Coastguard Worker0xc5 0x05 0xc2 0xc7 0x1f
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker# CHECK: vcmptrue_usss
12*9880d681SAndroid Build Coastguard Worker0xc5 0x06 0xc2 0xc7 0x1f
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker# CHECK: vcmptrue_ussd
15*9880d681SAndroid Build Coastguard Worker0xc5 0x07 0xc2 0xc7 0x1f
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeq_uqps
18*9880d681SAndroid Build Coastguard Worker0xc5 0x04 0xc2 0xc7 0x08
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeq_uqpd
21*9880d681SAndroid Build Coastguard Worker0xc5 0x05 0xc2 0xc7 0x08
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeq_uqss
24*9880d681SAndroid Build Coastguard Worker0xc5 0x06 0xc2 0xc7 0x08
25*9880d681SAndroid Build Coastguard Worker
26*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeq_uqsd
27*9880d681SAndroid Build Coastguard Worker0xc5 0x07 0xc2 0xc7 0x08
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeqps
30*9880d681SAndroid Build Coastguard Worker0xc5 0x04 0xc2 0xc7 0x00
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeqpd
33*9880d681SAndroid Build Coastguard Worker0xc5 0x05 0xc2 0xc7 0x00
34*9880d681SAndroid Build Coastguard Worker
35*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeqss
36*9880d681SAndroid Build Coastguard Worker0xc5 0x06 0xc2 0xc7 0x00
37*9880d681SAndroid Build Coastguard Worker
38*9880d681SAndroid Build Coastguard Worker# CHECK: vcmpeqsd
39*9880d681SAndroid Build Coastguard Worker0xc5 0x07 0xc2 0xc7 0x00
40*9880d681SAndroid Build Coastguard Worker
41*9880d681SAndroid Build Coastguard Worker# CHECK: cmpeqps
42*9880d681SAndroid Build Coastguard Worker0x0f 0xc2 0xc7 0x00
43*9880d681SAndroid Build Coastguard Worker
44*9880d681SAndroid Build Coastguard Worker# CHECK: cmpeqpd
45*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0xc2 0xc7 0x00
46*9880d681SAndroid Build Coastguard Worker
47*9880d681SAndroid Build Coastguard Worker# CHECK: cmpeqss
48*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0xc2 0xc7 0x00
49*9880d681SAndroid Build Coastguard Worker
50*9880d681SAndroid Build Coastguard Worker# CHECK: cmpeqsd
51*9880d681SAndroid Build Coastguard Worker0xf2 0x0f 0xc2 0xc7 0x00
52*9880d681SAndroid Build Coastguard Worker
53*9880d681SAndroid Build Coastguard Worker# CHECK: cmpordps
54*9880d681SAndroid Build Coastguard Worker0x0f 0xc2 0xc7 0x07
55*9880d681SAndroid Build Coastguard Worker
56*9880d681SAndroid Build Coastguard Worker# CHECK: cmpordpd
57*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0xc2 0xc7 0x07
58*9880d681SAndroid Build Coastguard Worker
59*9880d681SAndroid Build Coastguard Worker# CHECK: cmpordss
60*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0xc2 0xc7 0x07
61*9880d681SAndroid Build Coastguard Worker
62*9880d681SAndroid Build Coastguard Worker# CHECK: cmpordsd
63*9880d681SAndroid Build Coastguard Worker0xf2 0x0f 0xc2 0xc7 0x07
64*9880d681SAndroid Build Coastguard Worker
65*9880d681SAndroid Build Coastguard Worker# CHECK: extrq  $2, $3, %xmm0
66*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x78 0xc0 0x03 0x02
67*9880d681SAndroid Build Coastguard Worker
68*9880d681SAndroid Build Coastguard Worker# CHECK: extrq  %xmm1, %xmm0
69*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x79 0xc1
70*9880d681SAndroid Build Coastguard Worker
71*9880d681SAndroid Build Coastguard Worker# CHECK: insertq $6, $5, %xmm1, %xmm0
72*9880d681SAndroid Build Coastguard Worker0xf2 0x0f 0x78 0xc1 0x05 0x06
73*9880d681SAndroid Build Coastguard Worker
74*9880d681SAndroid Build Coastguard Worker# CHECK: insertq %xmm1, %xmm0
75*9880d681SAndroid Build Coastguard Worker0xf2 0x0f 0x79 0xc1
76*9880d681SAndroid Build Coastguard Worker
77*9880d681SAndroid Build Coastguard Worker# CHECK: movntsd %xmm0, (%rdi)
78*9880d681SAndroid Build Coastguard Worker0xf2 0x0f 0x2b 0x07
79*9880d681SAndroid Build Coastguard Worker
80*9880d681SAndroid Build Coastguard Worker# CHECK: movntss %xmm0, (%rdi)
81*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0x2b 0x07
82*9880d681SAndroid Build Coastguard Worker
83*9880d681SAndroid Build Coastguard Worker# CHECK: adcxl %eax, %eax
84*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x38 0xf6 0xc0
85*9880d681SAndroid Build Coastguard Worker
86*9880d681SAndroid Build Coastguard Worker# CHECK: adcxl (%rax), %eax
87*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x38 0xf6 0x00
88*9880d681SAndroid Build Coastguard Worker
89*9880d681SAndroid Build Coastguard Worker# CHECK: adcxq %rax, %rax
90*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x38 0xf6 0xc0
91*9880d681SAndroid Build Coastguard Worker
92*9880d681SAndroid Build Coastguard Worker# CHECK: adcxq (%rax), %rax
93*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x38 0xf6 0x00
94*9880d681SAndroid Build Coastguard Worker
95*9880d681SAndroid Build Coastguard Worker# CHECK: adoxl %eax, %eax
96*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0x38 0xf6 0xc0
97*9880d681SAndroid Build Coastguard Worker
98*9880d681SAndroid Build Coastguard Worker# CHECK: adoxl (%rax), %eax
99*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0x38 0xf6 0x00
100*9880d681SAndroid Build Coastguard Worker
101*9880d681SAndroid Build Coastguard Worker# CHECK: adoxq %rax, %rax
102*9880d681SAndroid Build Coastguard Worker0xf3 0x48 0x0f 0x38 0xf6 0xc0
103*9880d681SAndroid Build Coastguard Worker
104*9880d681SAndroid Build Coastguard Worker# CHECK: adoxq (%rax), %rax
105*9880d681SAndroid Build Coastguard Worker0xf3 0x48 0x0f 0x38 0xf6 0x00
106*9880d681SAndroid Build Coastguard Worker
107*9880d681SAndroid Build Coastguard Worker# CHECK: xbegin	53
108*9880d681SAndroid Build Coastguard Worker0xc7 0xf8 0x35 0x00 0x00 0x00
109*9880d681SAndroid Build Coastguard Worker
110*9880d681SAndroid Build Coastguard Worker# CHECK: xbegin	53
111*9880d681SAndroid Build Coastguard Worker0x66 0xc7 0xf8 0x35 0x00
112*9880d681SAndroid Build Coastguard Worker
113*9880d681SAndroid Build Coastguard Worker# CHECK: xend
114*9880d681SAndroid Build Coastguard Worker0x0f 0x01 0xd5
115*9880d681SAndroid Build Coastguard Worker
116*9880d681SAndroid Build Coastguard Worker# CHECK: xabort $13
117*9880d681SAndroid Build Coastguard Worker0xc6 0xf8 0x0d
118*9880d681SAndroid Build Coastguard Worker
119*9880d681SAndroid Build Coastguard Worker# CHECK: xsave64 (%rax)
120*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x20
121*9880d681SAndroid Build Coastguard Worker
122*9880d681SAndroid Build Coastguard Worker# CHECK: xrstor64 (%rax)
123*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x28
124*9880d681SAndroid Build Coastguard Worker
125*9880d681SAndroid Build Coastguard Worker# CHECK: xsaveopt64 (%rax)
126*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0xae 0x30
127*9880d681SAndroid Build Coastguard Worker
128*9880d681SAndroid Build Coastguard Worker# CHECK: clac
129*9880d681SAndroid Build Coastguard Worker0x0f 0x01 0xca
130*9880d681SAndroid Build Coastguard Worker
131*9880d681SAndroid Build Coastguard Worker# CHECK: stac
132*9880d681SAndroid Build Coastguard Worker0x0f 0x01 0xcb
133*9880d681SAndroid Build Coastguard Worker
134*9880d681SAndroid Build Coastguard Worker# CHECK: movabsb -6066930261531658096, %al
135*9880d681SAndroid Build Coastguard Worker0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
136*9880d681SAndroid Build Coastguard Worker
137*9880d681SAndroid Build Coastguard Worker# CHECK: movabsb -6066930261531658096, %al
138*9880d681SAndroid Build Coastguard Worker0x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
139*9880d681SAndroid Build Coastguard Worker
140*9880d681SAndroid Build Coastguard Worker# CHECK: movabsw -6066930261531658096, %ax
141*9880d681SAndroid Build Coastguard Worker0x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
142*9880d681SAndroid Build Coastguard Worker
143*9880d681SAndroid Build Coastguard Worker# CHECK: movabsl -6066930261531658096, %eax
144*9880d681SAndroid Build Coastguard Worker0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
145*9880d681SAndroid Build Coastguard Worker
146*9880d681SAndroid Build Coastguard Worker# CHECK: movabsq -6066930261531658096, %rax
147*9880d681SAndroid Build Coastguard Worker0x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
148*9880d681SAndroid Build Coastguard Worker
149*9880d681SAndroid Build Coastguard Worker# CHECK: movabsb %al, -6066930261531658096
150*9880d681SAndroid Build Coastguard Worker0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
151*9880d681SAndroid Build Coastguard Worker
152*9880d681SAndroid Build Coastguard Worker# CHECK: movabsb %al, -6066930261531658096
153*9880d681SAndroid Build Coastguard Worker0x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
154*9880d681SAndroid Build Coastguard Worker
155*9880d681SAndroid Build Coastguard Worker# CHECK: movabsw %ax, -6066930261531658096
156*9880d681SAndroid Build Coastguard Worker0x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
157*9880d681SAndroid Build Coastguard Worker
158*9880d681SAndroid Build Coastguard Worker# CHECK: movabsl %eax, -6066930261531658096
159*9880d681SAndroid Build Coastguard Worker0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
160*9880d681SAndroid Build Coastguard Worker
161*9880d681SAndroid Build Coastguard Worker# CHECK: movabsq %rax, -6066930261531658096
162*9880d681SAndroid Build Coastguard Worker0x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
163*9880d681SAndroid Build Coastguard Worker
164*9880d681SAndroid Build Coastguard Worker# CHECK: sha1rnds4 $1, %xmm1, %xmm2
165*9880d681SAndroid Build Coastguard Worker0x0f 0x3a 0xcc 0xd1 0x01
166*9880d681SAndroid Build Coastguard Worker
167*9880d681SAndroid Build Coastguard Worker# CHECK: sha1rnds4 $1, (%rax), %xmm2
168*9880d681SAndroid Build Coastguard Worker0x0f 0x3a 0xcc 0x10 0x01
169*9880d681SAndroid Build Coastguard Worker
170*9880d681SAndroid Build Coastguard Worker# CHECK: sha1nexte %xmm1, %xmm2
171*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xc8 0xd1
172*9880d681SAndroid Build Coastguard Worker
173*9880d681SAndroid Build Coastguard Worker# CHECK: sha1nexte (%rax), %xmm2
174*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xc8 0x10
175*9880d681SAndroid Build Coastguard Worker
176*9880d681SAndroid Build Coastguard Worker# CHECK: sha1msg1 %xmm1, %xmm2
177*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xc9 0xd1
178*9880d681SAndroid Build Coastguard Worker
179*9880d681SAndroid Build Coastguard Worker# CHECK: sha1msg1 (%rax), %xmm2
180*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xc9 0x10
181*9880d681SAndroid Build Coastguard Worker
182*9880d681SAndroid Build Coastguard Worker# CHECK: sha1msg2 %xmm1, %xmm2
183*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xca 0xd1
184*9880d681SAndroid Build Coastguard Worker
185*9880d681SAndroid Build Coastguard Worker# CHECK: sha1msg2 (%rax), %xmm2
186*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xca 0x10
187*9880d681SAndroid Build Coastguard Worker
188*9880d681SAndroid Build Coastguard Worker# CHECK: sha256rnds2 (%rax), %xmm2
189*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcb 0x10
190*9880d681SAndroid Build Coastguard Worker
191*9880d681SAndroid Build Coastguard Worker# CHECK: sha256rnds2 %xmm1, %xmm2
192*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcb 0xd1
193*9880d681SAndroid Build Coastguard Worker
194*9880d681SAndroid Build Coastguard Worker# CHECK: sha256msg1 %xmm1, %xmm2
195*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcc 0xd1
196*9880d681SAndroid Build Coastguard Worker
197*9880d681SAndroid Build Coastguard Worker# CHECK: sha256msg1 (%rax), %xmm2
198*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcc 0x10
199*9880d681SAndroid Build Coastguard Worker
200*9880d681SAndroid Build Coastguard Worker# CHECK: sha256msg2 %xmm1, %xmm2
201*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcd 0xd1
202*9880d681SAndroid Build Coastguard Worker
203*9880d681SAndroid Build Coastguard Worker# CHECK: sha256msg2 (%rax), %xmm2
204*9880d681SAndroid Build Coastguard Worker0x0f 0x38 0xcd 0x10
205*9880d681SAndroid Build Coastguard Worker
206*9880d681SAndroid Build Coastguard Worker# CHECK: incl %ecx
207*9880d681SAndroid Build Coastguard Worker0xff 0xc1
208*9880d681SAndroid Build Coastguard Worker
209*9880d681SAndroid Build Coastguard Worker# CHECK: decl %ecx
210*9880d681SAndroid Build Coastguard Worker0xff 0xc9
211*9880d681SAndroid Build Coastguard Worker
212*9880d681SAndroid Build Coastguard Worker# CHECK: incw %cx
213*9880d681SAndroid Build Coastguard Worker0x66 0xff 0xc1
214*9880d681SAndroid Build Coastguard Worker
215*9880d681SAndroid Build Coastguard Worker# CHECK: decw %cx
216*9880d681SAndroid Build Coastguard Worker0x66 0xff 0xc9
217*9880d681SAndroid Build Coastguard Worker
218*9880d681SAndroid Build Coastguard Worker# CHECK: incb %cl
219*9880d681SAndroid Build Coastguard Worker0xfe 0xc1
220*9880d681SAndroid Build Coastguard Worker
221*9880d681SAndroid Build Coastguard Worker# CHECK: decb %cl
222*9880d681SAndroid Build Coastguard Worker0xfe 0xc9
223*9880d681SAndroid Build Coastguard Worker
224*9880d681SAndroid Build Coastguard Worker# CHECK: incq %rcx
225*9880d681SAndroid Build Coastguard Worker0x48 0xff 0xc1
226*9880d681SAndroid Build Coastguard Worker
227*9880d681SAndroid Build Coastguard Worker# CHECK: decq %rcx
228*9880d681SAndroid Build Coastguard Worker0x48 0xff 0xc9
229*9880d681SAndroid Build Coastguard Worker
230*9880d681SAndroid Build Coastguard Worker# CHECK: movq %xmm0, %xmm0
231*9880d681SAndroid Build Coastguard Worker0xf3 0x0f 0x7e 0xc0
232*9880d681SAndroid Build Coastguard Worker
233*9880d681SAndroid Build Coastguard Worker# CHECK: vmovq %xmm0, %xmm0
234*9880d681SAndroid Build Coastguard Worker0xc5 0xfa 0x7e 0xc0
235*9880d681SAndroid Build Coastguard Worker
236*9880d681SAndroid Build Coastguard Worker# CHECK: vmovq %xmm0, %rax
237*9880d681SAndroid Build Coastguard Worker0xc4 0xe1 0xf9 0x7e 0xc0
238*9880d681SAndroid Build Coastguard Worker
239*9880d681SAndroid Build Coastguard Worker# CHECK: movd (%rax), %mm0
240*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x6e 0x00
241*9880d681SAndroid Build Coastguard Worker
242*9880d681SAndroid Build Coastguard Worker# CHECK: movd %rax, %mm0
243*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x6e 0xc0
244*9880d681SAndroid Build Coastguard Worker
245*9880d681SAndroid Build Coastguard Worker# CHECK: movd %mm0, (%rax)
246*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x7e 0x00
247*9880d681SAndroid Build Coastguard Worker
248*9880d681SAndroid Build Coastguard Worker# CHECK: movd %mm0, %rax
249*9880d681SAndroid Build Coastguard Worker0x48 0x0f 0x7e 0xc0
250*9880d681SAndroid Build Coastguard Worker
251*9880d681SAndroid Build Coastguard Worker# CHECK: movd (%rax), %xmm0
252*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x6e 0x00
253*9880d681SAndroid Build Coastguard Worker
254*9880d681SAndroid Build Coastguard Worker# CHECK: movd %rax, %xmm0
255*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x6e 0xc0
256*9880d681SAndroid Build Coastguard Worker
257*9880d681SAndroid Build Coastguard Worker# CHECK: movd %xmm0, (%rax)
258*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x7e 0x00
259*9880d681SAndroid Build Coastguard Worker
260*9880d681SAndroid Build Coastguard Worker# CHECK: movd %xmm0, %rax
261*9880d681SAndroid Build Coastguard Worker0x66 0x48 0x0f 0x7e 0xc0
262*9880d681SAndroid Build Coastguard Worker
263*9880d681SAndroid Build Coastguard Worker# CHECK: pextrw $3, %xmm3, %ecx
264*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x3a 0x15 0xd9 0x03
265*9880d681SAndroid Build Coastguard Worker
266*9880d681SAndroid Build Coastguard Worker# CHECK: pextrw $3, %xmm3, (%rax)
267*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x3a 0x15 0x18 0x03
268*9880d681SAndroid Build Coastguard Worker
269*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(,%r8)
270*9880d681SAndroid Build Coastguard Worker0x43 0x80 0x04 0x05 0x78 0x56 0x34 0x12 0x00
271*9880d681SAndroid Build Coastguard Worker
272*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(%r13,%r8)
273*9880d681SAndroid Build Coastguard Worker0x43 0x80 0x84 0x05 0x78 0x56 0x34 0x12 0x00
274*9880d681SAndroid Build Coastguard Worker
275*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(,%r8)
276*9880d681SAndroid Build Coastguard Worker0x42 0x80 0x04 0x05 0x78 0x56 0x34 0x12 0x00
277*9880d681SAndroid Build Coastguard Worker
278*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(%rbp,%r8)
279*9880d681SAndroid Build Coastguard Worker0x42 0x80 0x84 0x05 0x78 0x56 0x34 0x12 0x00
280*9880d681SAndroid Build Coastguard Worker
281*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(,%r12)
282*9880d681SAndroid Build Coastguard Worker0x42 0x80 0x04 0x25 0x78 0x56 0x34 0x12 0x00
283*9880d681SAndroid Build Coastguard Worker
284*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(%rbp,%r12)
285*9880d681SAndroid Build Coastguard Worker0x42 0x80 0x84 0x25 0x78 0x56 0x34 0x12 0x00
286*9880d681SAndroid Build Coastguard Worker
287*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896
288*9880d681SAndroid Build Coastguard Worker0x80 0x04 0x25 0x78 0x56 0x34 0x12 0x00
289*9880d681SAndroid Build Coastguard Worker
290*9880d681SAndroid Build Coastguard Worker# CHECK: $0, 305419896(%rbp)
291*9880d681SAndroid Build Coastguard Worker0x80 0x84 0x25 0x78 0x56 0x34 0x12 0x00
292*9880d681SAndroid Build Coastguard Worker
293*9880d681SAndroid Build Coastguard Worker# CHECK: movabsq 6510615555426900570, %rax
294*9880d681SAndroid Build Coastguard Worker0x48 0xa1 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a
295*9880d681SAndroid Build Coastguard Worker
296*9880d681SAndroid Build Coastguard Worker# CHECK: movq 1515870810, %rax
297*9880d681SAndroid Build Coastguard Worker0x67, 0x48 0xa1 0x5a 0x5a 0x5a 0x5a
298*9880d681SAndroid Build Coastguard Worker
299*9880d681SAndroid Build Coastguard Worker# CHECK: movabsq %rax, 6510615555426900570
300*9880d681SAndroid Build Coastguard Worker0x48 0xa3 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a 0x5a
301*9880d681SAndroid Build Coastguard Worker
302*9880d681SAndroid Build Coastguard Worker# CHECK: movq %rax, 1515870810
303*9880d681SAndroid Build Coastguard Worker0x67, 0x48 0xa3 0x5a 0x5a 0x5a 0x5a
304*9880d681SAndroid Build Coastguard Worker
305*9880d681SAndroid Build Coastguard Worker# CHECK: callq -32769
306*9880d681SAndroid Build Coastguard Worker0x66 0xe8 0xff 0x7f 0xff 0xff
307*9880d681SAndroid Build Coastguard Worker
308*9880d681SAndroid Build Coastguard Worker# CHECK: callq -32769
309*9880d681SAndroid Build Coastguard Worker0x66 0x66 0x48 0xe8 0xff 0x7f 0xff 0xff
310*9880d681SAndroid Build Coastguard Worker
311*9880d681SAndroid Build Coastguard Worker# CHECK: jmp -32769
312*9880d681SAndroid Build Coastguard Worker0xe9 0xff 0x7f 0xff 0xff
313*9880d681SAndroid Build Coastguard Worker
314*9880d681SAndroid Build Coastguard Worker# CHECK: jmp -32769
315*9880d681SAndroid Build Coastguard Worker0x66 0xe9 0xff 0x7f 0xff 0xff
316*9880d681SAndroid Build Coastguard Worker
317*9880d681SAndroid Build Coastguard Worker# CHECK: jmp -32769
318*9880d681SAndroid Build Coastguard Worker0x66 0x66 0x48 0xe9 0xff 0x7f 0xff 0xff
319*9880d681SAndroid Build Coastguard Worker
320*9880d681SAndroid Build Coastguard Worker# CHECK: jb -32769
321*9880d681SAndroid Build Coastguard Worker0x0f 0x82 0xff 0x7f 0xff 0xff
322*9880d681SAndroid Build Coastguard Worker
323*9880d681SAndroid Build Coastguard Worker# CHECK: jb -32769
324*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x82 0xff 0x7f 0xff 0xff
325*9880d681SAndroid Build Coastguard Worker
326*9880d681SAndroid Build Coastguard Worker# CHECK: jae -32769
327*9880d681SAndroid Build Coastguard Worker0x0f 0x83 0xff 0x7f 0xff 0xff
328*9880d681SAndroid Build Coastguard Worker
329*9880d681SAndroid Build Coastguard Worker# CHECK: jae -32769
330*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x83 0xff 0x7f 0xff 0xff
331*9880d681SAndroid Build Coastguard Worker
332*9880d681SAndroid Build Coastguard Worker# CHECK: je -32769
333*9880d681SAndroid Build Coastguard Worker0x0f 0x84 0xff 0x7f 0xff 0xff
334*9880d681SAndroid Build Coastguard Worker
335*9880d681SAndroid Build Coastguard Worker# CHECK: je -32769
336*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x84 0xff 0x7f 0xff 0xff
337*9880d681SAndroid Build Coastguard Worker
338*9880d681SAndroid Build Coastguard Worker# CHECK: jne -32769
339*9880d681SAndroid Build Coastguard Worker0x0f 0x85 0xff 0x7f 0xff 0xff
340*9880d681SAndroid Build Coastguard Worker
341*9880d681SAndroid Build Coastguard Worker# CHECK: jne -32769
342*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x85 0xff 0x7f 0xff 0xff
343*9880d681SAndroid Build Coastguard Worker
344*9880d681SAndroid Build Coastguard Worker# CHECK: jbe -32769
345*9880d681SAndroid Build Coastguard Worker0x0f 0x86 0xff 0x7f 0xff 0xff
346*9880d681SAndroid Build Coastguard Worker
347*9880d681SAndroid Build Coastguard Worker# CHECK: jbe -32769
348*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x86 0xff 0x7f 0xff 0xff
349*9880d681SAndroid Build Coastguard Worker
350*9880d681SAndroid Build Coastguard Worker# CHECK: ja -32769
351*9880d681SAndroid Build Coastguard Worker0x0f 0x87 0xff 0x7f 0xff 0xff
352*9880d681SAndroid Build Coastguard Worker
353*9880d681SAndroid Build Coastguard Worker# CHECK: ja -32769
354*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x87 0xff 0x7f 0xff 0xff
355*9880d681SAndroid Build Coastguard Worker
356*9880d681SAndroid Build Coastguard Worker# CHECK: js -32769
357*9880d681SAndroid Build Coastguard Worker0x0f 0x88 0xff 0x7f 0xff 0xff
358*9880d681SAndroid Build Coastguard Worker
359*9880d681SAndroid Build Coastguard Worker# CHECK: js -32769
360*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x88 0xff 0x7f 0xff 0xff
361*9880d681SAndroid Build Coastguard Worker
362*9880d681SAndroid Build Coastguard Worker# CHECK: jns -32769
363*9880d681SAndroid Build Coastguard Worker0x0f 0x89 0xff 0x7f 0xff 0xff
364*9880d681SAndroid Build Coastguard Worker
365*9880d681SAndroid Build Coastguard Worker# CHECK: jns -32769
366*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x89 0xff 0x7f 0xff 0xff
367*9880d681SAndroid Build Coastguard Worker
368*9880d681SAndroid Build Coastguard Worker# CHECK: jp -32769
369*9880d681SAndroid Build Coastguard Worker0x0f 0x8a 0xff 0x7f 0xff 0xff
370*9880d681SAndroid Build Coastguard Worker
371*9880d681SAndroid Build Coastguard Worker# CHECK: jp -32769
372*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8a 0xff 0x7f 0xff 0xff
373*9880d681SAndroid Build Coastguard Worker
374*9880d681SAndroid Build Coastguard Worker# CHECK: jnp -32769
375*9880d681SAndroid Build Coastguard Worker0x0f 0x8b 0xff 0x7f 0xff 0xff
376*9880d681SAndroid Build Coastguard Worker
377*9880d681SAndroid Build Coastguard Worker# CHECK: jnp -32769
378*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8b 0xff 0x7f 0xff 0xff
379*9880d681SAndroid Build Coastguard Worker
380*9880d681SAndroid Build Coastguard Worker# CHECK: jl -32769
381*9880d681SAndroid Build Coastguard Worker0x0f 0x8c 0xff 0x7f 0xff 0xff
382*9880d681SAndroid Build Coastguard Worker
383*9880d681SAndroid Build Coastguard Worker# CHECK: jl -32769
384*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8c 0xff 0x7f 0xff 0xff
385*9880d681SAndroid Build Coastguard Worker
386*9880d681SAndroid Build Coastguard Worker# CHECK: jge -32769
387*9880d681SAndroid Build Coastguard Worker0x0f 0x8d 0xff 0x7f 0xff 0xff
388*9880d681SAndroid Build Coastguard Worker
389*9880d681SAndroid Build Coastguard Worker# CHECK: jge -32769
390*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8d 0xff 0x7f 0xff 0xff
391*9880d681SAndroid Build Coastguard Worker
392*9880d681SAndroid Build Coastguard Worker# CHECK: jle -32769
393*9880d681SAndroid Build Coastguard Worker0x0f 0x8e 0xff 0x7f 0xff 0xff
394*9880d681SAndroid Build Coastguard Worker
395*9880d681SAndroid Build Coastguard Worker# CHECK: jle -32769
396*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8e 0xff 0x7f 0xff 0xff
397*9880d681SAndroid Build Coastguard Worker
398*9880d681SAndroid Build Coastguard Worker# CHECK: jg -32769
399*9880d681SAndroid Build Coastguard Worker0x0f 0x8f 0xff 0x7f 0xff 0xff
400*9880d681SAndroid Build Coastguard Worker
401*9880d681SAndroid Build Coastguard Worker# CHECK: jg -32769
402*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0x8f 0xff 0x7f 0xff 0xff
403*9880d681SAndroid Build Coastguard Worker
404*9880d681SAndroid Build Coastguard Worker# CHECK: lcallw	*-32769(%rip)
405*9880d681SAndroid Build Coastguard Worker0x66 0xff 0x1d 0xff 0x7f 0xff 0xff
406*9880d681SAndroid Build Coastguard Worker
407*9880d681SAndroid Build Coastguard Worker# CHECK: ljmpw	*-32769(%rip)
408*9880d681SAndroid Build Coastguard Worker0x66 0xff 0x2d 0xff 0x7f 0xff 0xff
409*9880d681SAndroid Build Coastguard Worker
410*9880d681SAndroid Build Coastguard Worker# CHECK: psubsb	(%rdx), %mm3
411*9880d681SAndroid Build Coastguard Worker0x0f 0xe8 0x1a
412*9880d681SAndroid Build Coastguard Worker
413*9880d681SAndroid Build Coastguard Worker# CHECK: psubsb	(%rdx), %xmm3
414*9880d681SAndroid Build Coastguard Worker0x66 0x0f 0xe8 0x1a
415*9880d681SAndroid Build Coastguard Worker
416*9880d681SAndroid Build Coastguard Worker# CHECK: addq 255(%rip), %rbx
417*9880d681SAndroid Build Coastguard Worker0x49, 0x03, 0x1d, 0xff, 0x00, 0x00, 0x00
418*9880d681SAndroid Build Coastguard Worker
419*9880d681SAndroid Build Coastguard Worker# The following 4 encodings are equivalent, as confirmed by the 'xed64'
420*9880d681SAndroid Build Coastguard Worker# decoder tool provided by Intel, which we assume to be canonical even
421*9880d681SAndroid Build Coastguard Worker# if the real silicon does something different. If that should happen,
422*9880d681SAndroid Build Coastguard Worker# then we'll all have disassembler bugs to repair.
423*9880d681SAndroid Build Coastguard Worker
424*9880d681SAndroid Build Coastguard Worker# Try all combinations of EVEX.x and REX.b:
425*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps	287453952(%rip), %zmm20, %zmm15
426*9880d681SAndroid Build Coastguard Worker0x62 0x11 0x5c 0x40 0x58 0x3d 0x00 0x33 0x22 0x11
427*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps	287453952(%rip), %zmm20, %zmm15
428*9880d681SAndroid Build Coastguard Worker0x62 0x31 0x5c 0x40 0x58 0x3d 0x00 0x33 0x22 0x11
429*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps	287453952(%rip), %zmm20, %zmm15
430*9880d681SAndroid Build Coastguard Worker0x62 0x51 0x5c 0x40 0x58 0x3d 0x00 0x33 0x22 0x11
431*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps	287453952(%rip), %zmm20, %zmm15
432*9880d681SAndroid Build Coastguard Worker0x62 0x71 0x5c 0x40 0x58 0x3d 0x00 0x33 0x22 0x11
433*9880d681SAndroid Build Coastguard Worker
434*9880d681SAndroid Build Coastguard Worker# Known bugs: these use a SIB byte. The index register is incorrectly
435*9880d681SAndroid Build Coastguard Worker# printed as an xmm register. Indeed there are "gather" load instructions
436*9880d681SAndroid Build Coastguard Worker# taking a vector of indices, but ONLY those instructions can do that.
437*9880d681SAndroid Build Coastguard Worker# The CHECK lines test the current incorrect output; FIXME is desired.
438*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps (%r10,%xmm9), %zmm20, %zmm15
439*9880d681SAndroid Build Coastguard Worker# FIXME: vaddps (%r10,%r9), %zmm20, %zmm15
440*9880d681SAndroid Build Coastguard Worker0x62 0x11 0x5c 0x40 0x58 0x3c 0x0a
441*9880d681SAndroid Build Coastguard Worker
442*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps (%rdx,%xmm9), %zmm20, %zmm15
443*9880d681SAndroid Build Coastguard Worker# FIXME: vaddps (%rdx,%r9), %zmm20, %zmm15
444*9880d681SAndroid Build Coastguard Worker0x62 0x31 0x5c 0x40 0x58 0x3c 0x0a
445*9880d681SAndroid Build Coastguard Worker
446*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps (%r10,%xmm1), %zmm20, %zmm15
447*9880d681SAndroid Build Coastguard Worker# FIXME: vaddps (%r10,%rcx), %zmm20, %zmm15
448*9880d681SAndroid Build Coastguard Worker0x62 0x51 0x5c 0x40 0x58 0x3c 0x0a
449*9880d681SAndroid Build Coastguard Worker
450*9880d681SAndroid Build Coastguard Worker# CHECK: vaddps (%rdx,%xmm1), %zmm20, %zmm15
451*9880d681SAndroid Build Coastguard Worker# FIXME: vaddps (%rdx,%rcx), %zmm20, %zmm15
452*9880d681SAndroid Build Coastguard Worker0x62 0x71 0x5c 0x40 0x58 0x3c 0x0a
453*9880d681SAndroid Build Coastguard Worker
454*9880d681SAndroid Build Coastguard Worker# CHECK: callq 32767
455*9880d681SAndroid Build Coastguard Worker0xe8 0xff 0x7f 0x00 0x00
456*9880d681SAndroid Build Coastguard Worker
457*9880d681SAndroid Build Coastguard Worker# CHECK: callq -32769
458*9880d681SAndroid Build Coastguard Worker0xe8 0xff 0x7f 0xff 0xff
459