• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
2
3// CHECK: bsfw %r13w, %r13w
4// CHECK: encoding: [0x66,0x45,0x0f,0xbc,0xed]
5bsfw %r13w, %r13w
6
7// CHECK: bsrw %r13w, %r13w
8// CHECK: encoding: [0x66,0x45,0x0f,0xbd,0xed]
9bsrw %r13w, %r13w
10
11// CHECK: bsfl %r13d, %r13d
12// CHECK: encoding: [0x45,0x0f,0xbc,0xed]
13bsfl %r13d, %r13d
14
15// CHECK: bsrl %r13d, %r13d
16// CHECK: encoding: [0x45,0x0f,0xbd,0xed]
17bsrl %r13d, %r13d
18
19// CHECK: bsfq %r13, %r13
20// CHECK: encoding: [0x4d,0x0f,0xbc,0xed]
21bsfq %r13, %r13
22
23// CHECK: bsrq %r13, %r13
24// CHECK: encoding: [0x4d,0x0f,0xbd,0xed]
25bsrq %r13, %r13
26
27
28// CHECK: btcw $0, %r13w
29// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xfd,0x00]
30btcw $0, %r13w
31
32// CHECK: btcw $255, %r13w
33// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xfd,0xff]
34btcw $-1, %r13w
35
36// CHECK: btcw $255, %r13w
37// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xfd,0xff]
38btcw $255, %r13w
39
40// CHECK: btcw %r13w, %r13w
41// CHECK: encoding: [0x66,0x45,0x0f,0xbb,0xed]
42btcw %r13w, %r13w
43
44// CHECK: btw $0, %r13w
45// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xe5,0x00]
46btw $0, %r13w
47
48// CHECK: btw $255, %r13w
49// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xe5,0xff]
50btw $-1, %r13w
51
52// CHECK: btw $255, %r13w
53// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xe5,0xff]
54btw $255, %r13w
55
56// CHECK: btw %r13w, %r13w
57// CHECK: encoding: [0x66,0x45,0x0f,0xa3,0xed]
58btw %r13w, %r13w
59
60// CHECK: btrw $0, %r13w
61// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xf5,0x00]
62btrw $0, %r13w
63
64// CHECK: btrw $255, %r13w
65// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xf5,0xff]
66btrw $-1, %r13w
67
68// CHECK: btrw $255, %r13w
69// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xf5,0xff]
70btrw $255, %r13w
71
72// CHECK: btrw %r13w, %r13w
73// CHECK: encoding: [0x66,0x45,0x0f,0xb3,0xed]
74btrw %r13w, %r13w
75
76// CHECK: btsw $0, %r13w
77// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xed,0x00]
78btsw $0, %r13w
79
80// CHECK: btsw $255, %r13w
81// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xed,0xff]
82btsw $-1, %r13w
83
84// CHECK: btsw $255, %r13w
85// CHECK: encoding: [0x66,0x41,0x0f,0xba,0xed,0xff]
86btsw $255, %r13w
87
88// CHECK: btsw %r13w, %r13w
89// CHECK: encoding: [0x66,0x45,0x0f,0xab,0xed]
90btsw %r13w, %r13w
91
92// CHECK: btcl $0, %r13d
93// CHECK: encoding: [0x41,0x0f,0xba,0xfd,0x00]
94btcl $0, %r13d
95
96// CHECK: btcl $255, %r13d
97// CHECK: encoding: [0x41,0x0f,0xba,0xfd,0xff]
98btcl $-1, %r13d
99
100// CHECK: btcl $255, %r13d
101// CHECK: encoding: [0x41,0x0f,0xba,0xfd,0xff]
102btcl $255, %r13d
103
104// CHECK: btcl %r13d, %r13d
105// CHECK: encoding: [0x45,0x0f,0xbb,0xed]
106btcl %r13d, %r13d
107
108// CHECK: btl $0, %r13d
109// CHECK: encoding: [0x41,0x0f,0xba,0xe5,0x00]
110btl $0, %r13d
111
112// CHECK: btl $255, %r13d
113// CHECK: encoding: [0x41,0x0f,0xba,0xe5,0xff]
114btl $-1, %r13d
115
116// CHECK: btl $255, %r13d
117// CHECK: encoding: [0x41,0x0f,0xba,0xe5,0xff]
118btl $255, %r13d
119
120// CHECK: btl %r13d, %r13d
121// CHECK: encoding: [0x45,0x0f,0xa3,0xed]
122btl %r13d, %r13d
123
124// CHECK: btrl $0, %r13d
125// CHECK: encoding: [0x41,0x0f,0xba,0xf5,0x00]
126btrl $0, %r13d
127
128// CHECK: btrl $255, %r13d
129// CHECK: encoding: [0x41,0x0f,0xba,0xf5,0xff]
130btrl $-1, %r13d
131
132// CHECK: btrl $255, %r13d
133// CHECK: encoding: [0x41,0x0f,0xba,0xf5,0xff]
134btrl $255, %r13d
135
136// CHECK: btrl %r13d, %r13d
137// CHECK: encoding: [0x45,0x0f,0xb3,0xed]
138btrl %r13d, %r13d
139
140// CHECK: btsl $0, %r13d
141// CHECK: encoding: [0x41,0x0f,0xba,0xed,0x00]
142btsl $0, %r13d
143
144// CHECK: btsl $255, %r13d
145// CHECK: encoding: [0x41,0x0f,0xba,0xed,0xff]
146btsl $-1, %r13d
147
148// CHECK: btsl $255, %r13d
149// CHECK: encoding: [0x41,0x0f,0xba,0xed,0xff]
150btsl $255, %r13d
151
152// CHECK: btsl %r13d, %r13d
153// CHECK: encoding: [0x45,0x0f,0xab,0xed]
154btsl %r13d, %r13d
155
156// CHECK: btcq $0, %r13
157// CHECK: encoding: [0x49,0x0f,0xba,0xfd,0x00]
158btcq $0, %r13
159
160// CHECK: btcq $255, %r13
161// CHECK: encoding: [0x49,0x0f,0xba,0xfd,0xff]
162btcq $-1, %r13
163
164// CHECK: btcq $255, %r13
165// CHECK: encoding: [0x49,0x0f,0xba,0xfd,0xff]
166btcq $255, %r13
167
168// CHECK: btcq %r13, %r13
169// CHECK: encoding: [0x4d,0x0f,0xbb,0xed]
170btcq %r13, %r13
171
172// CHECK: btq $0, %r13
173// CHECK: encoding: [0x49,0x0f,0xba,0xe5,0x00]
174btq $0, %r13
175
176// CHECK: btq $255, %r13
177// CHECK: encoding: [0x49,0x0f,0xba,0xe5,0xff]
178btq $-1, %r13
179
180// CHECK: btq $255, %r13
181// CHECK: encoding: [0x49,0x0f,0xba,0xe5,0xff]
182btq $255, %r13
183
184// CHECK: btq %r13, %r13
185// CHECK: encoding: [0x4d,0x0f,0xa3,0xed]
186btq %r13, %r13
187
188// CHECK: btrq $0, %r13
189// CHECK: encoding: [0x49,0x0f,0xba,0xf5,0x00]
190btrq $0, %r13
191
192// CHECK: btrq $255, %r13
193// CHECK: encoding: [0x49,0x0f,0xba,0xf5,0xff]
194btrq $-1, %r13
195
196// CHECK: btrq $255, %r13
197// CHECK: encoding: [0x49,0x0f,0xba,0xf5,0xff]
198btrq $255, %r13
199
200// CHECK: btrq %r13, %r13
201// CHECK: encoding: [0x4d,0x0f,0xb3,0xed]
202btrq %r13, %r13
203
204// CHECK: btsq $0, %r13
205// CHECK: encoding: [0x49,0x0f,0xba,0xed,0x00]
206btsq $0, %r13
207
208// CHECK: btsq $255, %r13
209// CHECK: encoding: [0x49,0x0f,0xba,0xed,0xff]
210btsq $-1, %r13
211
212// CHECK: btsq $255, %r13
213// CHECK: encoding: [0x49,0x0f,0xba,0xed,0xff]
214btsq $255, %r13
215
216// CHECK: btsq %r13, %r13
217// CHECK: encoding: [0x4d,0x0f,0xab,0xed]
218btsq %r13, %r13
219
220// CHECK: cmpsb %es:(%rdi), %gs:(%rsi)
221// CHECK: encoding: [0x65,0xa6]
222cmpsb %es:(%rdi), %gs:(%rsi)
223
224// CHECK: cmpsl %es:(%rdi), %gs:(%rsi)
225// CHECK: encoding: [0x65,0xa7]
226cmpsl %es:(%rdi), %gs:(%rsi)
227
228// CHECK: cmpsq %es:(%rdi), %gs:(%rsi)
229// CHECK: encoding: [0x48,0x65,0xa7]
230cmpsq %es:(%rdi), %gs:(%rsi)
231
232// CHECK: cmpsw %es:(%rdi), %gs:(%rsi)
233// CHECK: encoding: [0x66,0x65,0xa7]
234cmpsw %es:(%rdi), %gs:(%rsi)
235
236// CHECK: insb %dx, %es:(%rdi)
237// CHECK: encoding: [0x6c]
238insb %dx, %es:(%rdi)
239
240// CHECK: insl %dx, %es:(%rdi)
241// CHECK: encoding: [0x6d]
242insl %dx, %es:(%rdi)
243
244// CHECK: insw %dx, %es:(%rdi)
245// CHECK: encoding: [0x66,0x6d]
246insw %dx, %es:(%rdi)
247
248// CHECK: iretl
249// CHECK: encoding: [0xcf]
250iretl
251
252// CHECK: iretq
253// CHECK: encoding: [0x48,0xcf]
254iretq
255
256// CHECK: iretw
257// CHECK: encoding: [0x66,0xcf]
258iretw
259
260// CHECK: lodsl %gs:(%rsi), %eax
261// CHECK: encoding: [0x65,0xad]
262lodsl %gs:(%rsi), %eax
263
264// CHECK: lzcntl %r13d, %r13d
265// CHECK: encoding: [0xf3,0x45,0x0f,0xbd,0xed]
266lzcntl %r13d, %r13d
267
268// CHECK: movsb %gs:(%rsi), %es:(%rdi)
269// CHECK: encoding: [0x65,0xa4]
270movsb %gs:(%rsi), %es:(%rdi)
271
272// CHECK: movsbl 485498096, %r13d
273// CHECK: encoding: [0x44,0x0f,0xbe,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
274movsbl 485498096, %r13d
275
276// CHECK: movsbl 64(%rdx), %r13d
277// CHECK: encoding: [0x44,0x0f,0xbe,0x6a,0x40]
278movsbl 64(%rdx), %r13d
279
280// CHECK: movsbl 64(%rdx,%rax,4), %r13d
281// CHECK: encoding: [0x44,0x0f,0xbe,0x6c,0x82,0x40]
282movsbl 64(%rdx,%rax,4), %r13d
283
284// CHECK: movsbl -64(%rdx,%rax,4), %r13d
285// CHECK: encoding: [0x44,0x0f,0xbe,0x6c,0x82,0xc0]
286movsbl -64(%rdx,%rax,4), %r13d
287
288// CHECK: movsbl 64(%rdx,%rax), %r13d
289// CHECK: encoding: [0x44,0x0f,0xbe,0x6c,0x02,0x40]
290movsbl 64(%rdx,%rax), %r13d
291
292// CHECK: movsbl %r11b, %r13d
293// CHECK: encoding: [0x45,0x0f,0xbe,0xeb]
294movsbl %r11b, %r13d
295
296// CHECK: movsbl %r14b, %r13d
297// CHECK: encoding: [0x45,0x0f,0xbe,0xee]
298movsbl %r14b, %r13d
299
300// CHECK: movsbl (%rdx), %r13d
301// CHECK: encoding: [0x44,0x0f,0xbe,0x2a]
302movsbl (%rdx), %r13d
303
304// CHECK: movsl %gs:(%rsi), %es:(%rdi)
305// CHECK: encoding: [0x65,0xa5]
306movsl %gs:(%rsi), %es:(%rdi)
307
308// CHECK: movsq %gs:(%rsi), %es:(%rdi)
309// CHECK: encoding: [0x48,0x65,0xa5]
310movsq %gs:(%rsi), %es:(%rdi)
311
312// CHECK: movsw %gs:(%rsi), %es:(%rdi)
313// CHECK: encoding: [0x66,0x65,0xa5]
314movsw %gs:(%rsi), %es:(%rdi)
315
316// CHECK: movswl 485498096, %r13d
317// CHECK: encoding: [0x44,0x0f,0xbf,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
318movswl 485498096, %r13d
319
320// CHECK: movswl 64(%rdx), %r13d
321// CHECK: encoding: [0x44,0x0f,0xbf,0x6a,0x40]
322movswl 64(%rdx), %r13d
323
324// CHECK: movswl 64(%rdx,%rax,4), %r13d
325// CHECK: encoding: [0x44,0x0f,0xbf,0x6c,0x82,0x40]
326movswl 64(%rdx,%rax,4), %r13d
327
328// CHECK: movswl -64(%rdx,%rax,4), %r13d
329// CHECK: encoding: [0x44,0x0f,0xbf,0x6c,0x82,0xc0]
330movswl -64(%rdx,%rax,4), %r13d
331
332// CHECK: movswl 64(%rdx,%rax), %r13d
333// CHECK: encoding: [0x44,0x0f,0xbf,0x6c,0x02,0x40]
334movswl 64(%rdx,%rax), %r13d
335
336// CHECK: movswl %r11w, %r13d
337// CHECK: encoding: [0x45,0x0f,0xbf,0xeb]
338movswl %r11w, %r13d
339
340// CHECK: movswl %r14w, %r13d
341// CHECK: encoding: [0x45,0x0f,0xbf,0xee]
342movswl %r14w, %r13d
343
344// CHECK: movswl (%rdx), %r13d
345// CHECK: encoding: [0x44,0x0f,0xbf,0x2a]
346movswl (%rdx), %r13d
347
348// CHECK: movzbl 485498096, %r13d
349// CHECK: encoding: [0x44,0x0f,0xb6,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
350movzbl 485498096, %r13d
351
352// CHECK: movzbl 64(%rdx), %r13d
353// CHECK: encoding: [0x44,0x0f,0xb6,0x6a,0x40]
354movzbl 64(%rdx), %r13d
355
356// CHECK: movzbl 64(%rdx,%rax,4), %r13d
357// CHECK: encoding: [0x44,0x0f,0xb6,0x6c,0x82,0x40]
358movzbl 64(%rdx,%rax,4), %r13d
359
360// CHECK: movzbl -64(%rdx,%rax,4), %r13d
361// CHECK: encoding: [0x44,0x0f,0xb6,0x6c,0x82,0xc0]
362movzbl -64(%rdx,%rax,4), %r13d
363
364// CHECK: movzbl 64(%rdx,%rax), %r13d
365// CHECK: encoding: [0x44,0x0f,0xb6,0x6c,0x02,0x40]
366movzbl 64(%rdx,%rax), %r13d
367
368// CHECK: movzbl %r11b, %r13d
369// CHECK: encoding: [0x45,0x0f,0xb6,0xeb]
370movzbl %r11b, %r13d
371
372// CHECK: movzbl %r14b, %r13d
373// CHECK: encoding: [0x45,0x0f,0xb6,0xee]
374movzbl %r14b, %r13d
375
376// CHECK: movzbl (%rdx), %r13d
377// CHECK: encoding: [0x44,0x0f,0xb6,0x2a]
378movzbl (%rdx), %r13d
379
380// CHECK: movzwl 485498096, %r13d
381// CHECK: encoding: [0x44,0x0f,0xb7,0x2c,0x25,0xf0,0x1c,0xf0,0x1c]
382movzwl 485498096, %r13d
383
384// CHECK: movzwl 64(%rdx), %r13d
385// CHECK: encoding: [0x44,0x0f,0xb7,0x6a,0x40]
386movzwl 64(%rdx), %r13d
387
388// CHECK: movzwl 64(%rdx,%rax,4), %r13d
389// CHECK: encoding: [0x44,0x0f,0xb7,0x6c,0x82,0x40]
390movzwl 64(%rdx,%rax,4), %r13d
391
392// CHECK: movzwl -64(%rdx,%rax,4), %r13d
393// CHECK: encoding: [0x44,0x0f,0xb7,0x6c,0x82,0xc0]
394movzwl -64(%rdx,%rax,4), %r13d
395
396// CHECK: movzwl 64(%rdx,%rax), %r13d
397// CHECK: encoding: [0x44,0x0f,0xb7,0x6c,0x02,0x40]
398movzwl 64(%rdx,%rax), %r13d
399
400// CHECK: movzwl %r11w, %r13d
401// CHECK: encoding: [0x45,0x0f,0xb7,0xeb]
402movzwl %r11w, %r13d
403
404// CHECK: movzwl %r14w, %r13d
405// CHECK: encoding: [0x45,0x0f,0xb7,0xee]
406movzwl %r14w, %r13d
407
408// CHECK: movzwl (%rdx), %r13d
409// CHECK: encoding: [0x44,0x0f,0xb7,0x2a]
410movzwl (%rdx), %r13d
411
412// CHECK: outsb %gs:(%rsi), %dx
413// CHECK: encoding: [0x65,0x6e]
414outsb %gs:(%rsi), %dx
415
416// CHECK: outsl %gs:(%rsi), %dx
417// CHECK: encoding: [0x65,0x6f]
418outsl %gs:(%rsi), %dx
419
420// CHECK: outsw %gs:(%rsi), %dx
421// CHECK: encoding: [0x66,0x65,0x6f]
422outsw %gs:(%rsi), %dx
423
424// CHECK: rep cmpsb %es:(%rdi), %gs:(%rsi)
425// CHECK: encoding: [0xf3,0x65,0xa6]
426rep cmpsb %es:(%rdi), %gs:(%rsi)
427
428// CHECK: rep cmpsl %es:(%rdi), %gs:(%rsi)
429// CHECK: encoding: [0xf3,0x65,0xa7]
430rep cmpsl %es:(%rdi), %gs:(%rsi)
431
432// CHECK: rep cmpsq %es:(%rdi), %gs:(%rsi)
433// CHECK: encoding: [0xf3,0x48,0x65,0xa7]
434rep cmpsq %es:(%rdi), %gs:(%rsi)
435
436// CHECK: rep cmpsw %es:(%rdi), %gs:(%rsi)
437// CHECK: encoding: [0xf3,0x66,0x65,0xa7]
438rep cmpsw %es:(%rdi), %gs:(%rsi)
439
440// CHECK: rep insb %dx, %es:(%rdi)
441// CHECK: encoding: [0xf3,0x6c]
442rep insb %dx, %es:(%rdi)
443
444// CHECK: rep insl %dx, %es:(%rdi)
445// CHECK: encoding: [0xf3,0x6d]
446rep insl %dx, %es:(%rdi)
447
448// CHECK: rep insw %dx, %es:(%rdi)
449// CHECK: encoding: [0xf3,0x66,0x6d]
450rep insw %dx, %es:(%rdi)
451
452// CHECK: rep lodsl %gs:(%rsi), %eax
453// CHECK: encoding: [0xf3,0x65,0xad]
454rep lodsl %gs:(%rsi), %eax
455
456// CHECK: rep movsb %gs:(%rsi), %es:(%rdi)
457// CHECK: encoding: [0xf3,0x65,0xa4]
458rep movsb %gs:(%rsi), %es:(%rdi)
459
460// CHECK: rep movsl %gs:(%rsi), %es:(%rdi)
461// CHECK: encoding: [0xf3,0x65,0xa5]
462rep movsl %gs:(%rsi), %es:(%rdi)
463
464// CHECK: rep movsq %gs:(%rsi), %es:(%rdi)
465// CHECK: encoding: [0xf3,0x48,0x65,0xa5]
466rep movsq %gs:(%rsi), %es:(%rdi)
467
468// CHECK: rep movsw %gs:(%rsi), %es:(%rdi)
469// CHECK: encoding: [0xf3,0x66,0x65,0xa5]
470rep movsw %gs:(%rsi), %es:(%rdi)
471
472// CHECK: repne cmpsb %es:(%rdi), %gs:(%rsi)
473// CHECK: encoding: [0xf2,0x65,0xa6]
474repne cmpsb %es:(%rdi), %gs:(%rsi)
475
476// CHECK: repne cmpsl %es:(%rdi), %gs:(%rsi)
477// CHECK: encoding: [0xf2,0x65,0xa7]
478repne cmpsl %es:(%rdi), %gs:(%rsi)
479
480// CHECK: repne cmpsq %es:(%rdi), %gs:(%rsi)
481// CHECK: encoding: [0xf2,0x48,0x65,0xa7]
482repne cmpsq %es:(%rdi), %gs:(%rsi)
483
484// CHECK: repne cmpsw %es:(%rdi), %gs:(%rsi)
485// CHECK: encoding: [0xf2,0x66,0x65,0xa7]
486repne cmpsw %es:(%rdi), %gs:(%rsi)
487
488// CHECK: repne insb %dx, %es:(%rdi)
489// CHECK: encoding: [0xf2,0x6c]
490repne insb %dx, %es:(%rdi)
491
492// CHECK: repne insl %dx, %es:(%rdi)
493// CHECK: encoding: [0xf2,0x6d]
494repne insl %dx, %es:(%rdi)
495
496// CHECK: repne insw %dx, %es:(%rdi)
497// CHECK: encoding: [0xf2,0x66,0x6d]
498repne insw %dx, %es:(%rdi)
499
500// CHECK: repne lodsl %gs:(%rsi), %eax
501// CHECK: encoding: [0xf2,0x65,0xad]
502repne lodsl %gs:(%rsi), %eax
503
504// CHECK: repne movsb %gs:(%rsi), %es:(%rdi)
505// CHECK: encoding: [0xf2,0x65,0xa4]
506repne movsb %gs:(%rsi), %es:(%rdi)
507
508// CHECK: repne movsl %gs:(%rsi), %es:(%rdi)
509// CHECK: encoding: [0xf2,0x65,0xa5]
510repne movsl %gs:(%rsi), %es:(%rdi)
511
512// CHECK: repne movsq %gs:(%rsi), %es:(%rdi)
513// CHECK: encoding: [0xf2,0x48,0x65,0xa5]
514repne movsq %gs:(%rsi), %es:(%rdi)
515
516// CHECK: repne movsw %gs:(%rsi), %es:(%rdi)
517// CHECK: encoding: [0xf2,0x66,0x65,0xa5]
518repne movsw %gs:(%rsi), %es:(%rdi)
519
520// CHECK: repne outsb %gs:(%rsi), %dx
521// CHECK: encoding: [0xf2,0x65,0x6e]
522repne outsb %gs:(%rsi), %dx
523
524// CHECK: repne outsl %gs:(%rsi), %dx
525// CHECK: encoding: [0xf2,0x65,0x6f]
526repne outsl %gs:(%rsi), %dx
527
528// CHECK: repne outsw %gs:(%rsi), %dx
529// CHECK: encoding: [0xf2,0x66,0x65,0x6f]
530repne outsw %gs:(%rsi), %dx
531
532// CHECK: repne scasl %es:(%rdi), %eax
533// CHECK: encoding: [0xf2,0xaf]
534repne scasl %es:(%rdi), %eax
535
536// CHECK: repne stosl %eax, %es:(%rdi)
537// CHECK: encoding: [0xf2,0xab]
538repne stosl %eax, %es:(%rdi)
539
540// CHECK: rep outsb %gs:(%rsi), %dx
541// CHECK: encoding: [0xf3,0x65,0x6e]
542rep outsb %gs:(%rsi), %dx
543
544// CHECK: rep outsl %gs:(%rsi), %dx
545// CHECK: encoding: [0xf3,0x65,0x6f]
546rep outsl %gs:(%rsi), %dx
547
548// CHECK: rep outsw %gs:(%rsi), %dx
549// CHECK: encoding: [0xf3,0x66,0x65,0x6f]
550rep outsw %gs:(%rsi), %dx
551
552// CHECK: rep scasl %es:(%rdi), %eax
553// CHECK: encoding: [0xf3,0xaf]
554rep scasl %es:(%rdi), %eax
555
556// CHECK: rep stosl %eax, %es:(%rdi)
557// CHECK: encoding: [0xf3,0xab]
558rep stosl %eax, %es:(%rdi)
559
560// CHECK: scasl %es:(%rdi), %eax
561// CHECK: encoding: [0xaf]
562scasl %es:(%rdi), %eax
563
564// CHECK: seta 485498096
565// CHECK: encoding: [0x0f,0x97,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
566seta 485498096
567
568// CHECK: seta 64(%rdx)
569// CHECK: encoding: [0x0f,0x97,0x42,0x40]
570seta 64(%rdx)
571
572// CHECK: seta 64(%rdx,%rax,4)
573// CHECK: encoding: [0x0f,0x97,0x44,0x82,0x40]
574seta 64(%rdx,%rax,4)
575
576// CHECK: seta -64(%rdx,%rax,4)
577// CHECK: encoding: [0x0f,0x97,0x44,0x82,0xc0]
578seta -64(%rdx,%rax,4)
579
580// CHECK: seta 64(%rdx,%rax)
581// CHECK: encoding: [0x0f,0x97,0x44,0x02,0x40]
582seta 64(%rdx,%rax)
583
584// CHECK: setae 485498096
585// CHECK: encoding: [0x0f,0x93,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
586setae 485498096
587
588// CHECK: setae 64(%rdx)
589// CHECK: encoding: [0x0f,0x93,0x42,0x40]
590setae 64(%rdx)
591
592// CHECK: setae 64(%rdx,%rax,4)
593// CHECK: encoding: [0x0f,0x93,0x44,0x82,0x40]
594setae 64(%rdx,%rax,4)
595
596// CHECK: setae -64(%rdx,%rax,4)
597// CHECK: encoding: [0x0f,0x93,0x44,0x82,0xc0]
598setae -64(%rdx,%rax,4)
599
600// CHECK: setae 64(%rdx,%rax)
601// CHECK: encoding: [0x0f,0x93,0x44,0x02,0x40]
602setae 64(%rdx,%rax)
603
604// CHECK: setae %r14b
605// CHECK: encoding: [0x41,0x0f,0x93,0xc6]
606setae %r14b
607
608// CHECK: setae (%rdx)
609// CHECK: encoding: [0x0f,0x93,0x02]
610setae (%rdx)
611
612// CHECK: seta %r14b
613// CHECK: encoding: [0x41,0x0f,0x97,0xc6]
614seta %r14b
615
616// CHECK: seta (%rdx)
617// CHECK: encoding: [0x0f,0x97,0x02]
618seta (%rdx)
619
620// CHECK: setb 485498096
621// CHECK: encoding: [0x0f,0x92,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
622setb 485498096
623
624// CHECK: setb 64(%rdx)
625// CHECK: encoding: [0x0f,0x92,0x42,0x40]
626setb 64(%rdx)
627
628// CHECK: setb 64(%rdx,%rax,4)
629// CHECK: encoding: [0x0f,0x92,0x44,0x82,0x40]
630setb 64(%rdx,%rax,4)
631
632// CHECK: setb -64(%rdx,%rax,4)
633// CHECK: encoding: [0x0f,0x92,0x44,0x82,0xc0]
634setb -64(%rdx,%rax,4)
635
636// CHECK: setb 64(%rdx,%rax)
637// CHECK: encoding: [0x0f,0x92,0x44,0x02,0x40]
638setb 64(%rdx,%rax)
639
640// CHECK: setbe 485498096
641// CHECK: encoding: [0x0f,0x96,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
642setbe 485498096
643
644// CHECK: setbe 64(%rdx)
645// CHECK: encoding: [0x0f,0x96,0x42,0x40]
646setbe 64(%rdx)
647
648// CHECK: setbe 64(%rdx,%rax,4)
649// CHECK: encoding: [0x0f,0x96,0x44,0x82,0x40]
650setbe 64(%rdx,%rax,4)
651
652// CHECK: setbe -64(%rdx,%rax,4)
653// CHECK: encoding: [0x0f,0x96,0x44,0x82,0xc0]
654setbe -64(%rdx,%rax,4)
655
656// CHECK: setbe 64(%rdx,%rax)
657// CHECK: encoding: [0x0f,0x96,0x44,0x02,0x40]
658setbe 64(%rdx,%rax)
659
660// CHECK: setbe %r14b
661// CHECK: encoding: [0x41,0x0f,0x96,0xc6]
662setbe %r14b
663
664// CHECK: setbe (%rdx)
665// CHECK: encoding: [0x0f,0x96,0x02]
666setbe (%rdx)
667
668// CHECK: setb %r14b
669// CHECK: encoding: [0x41,0x0f,0x92,0xc6]
670setb %r14b
671
672// CHECK: setb (%rdx)
673// CHECK: encoding: [0x0f,0x92,0x02]
674setb (%rdx)
675
676// CHECK: sete 485498096
677// CHECK: encoding: [0x0f,0x94,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
678sete 485498096
679
680// CHECK: sete 64(%rdx)
681// CHECK: encoding: [0x0f,0x94,0x42,0x40]
682sete 64(%rdx)
683
684// CHECK: sete 64(%rdx,%rax,4)
685// CHECK: encoding: [0x0f,0x94,0x44,0x82,0x40]
686sete 64(%rdx,%rax,4)
687
688// CHECK: sete -64(%rdx,%rax,4)
689// CHECK: encoding: [0x0f,0x94,0x44,0x82,0xc0]
690sete -64(%rdx,%rax,4)
691
692// CHECK: sete 64(%rdx,%rax)
693// CHECK: encoding: [0x0f,0x94,0x44,0x02,0x40]
694sete 64(%rdx,%rax)
695
696// CHECK: sete %r14b
697// CHECK: encoding: [0x41,0x0f,0x94,0xc6]
698sete %r14b
699
700// CHECK: sete (%rdx)
701// CHECK: encoding: [0x0f,0x94,0x02]
702sete (%rdx)
703
704// CHECK: setg 485498096
705// CHECK: encoding: [0x0f,0x9f,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
706setg 485498096
707
708// CHECK: setg 64(%rdx)
709// CHECK: encoding: [0x0f,0x9f,0x42,0x40]
710setg 64(%rdx)
711
712// CHECK: setg 64(%rdx,%rax,4)
713// CHECK: encoding: [0x0f,0x9f,0x44,0x82,0x40]
714setg 64(%rdx,%rax,4)
715
716// CHECK: setg -64(%rdx,%rax,4)
717// CHECK: encoding: [0x0f,0x9f,0x44,0x82,0xc0]
718setg -64(%rdx,%rax,4)
719
720// CHECK: setg 64(%rdx,%rax)
721// CHECK: encoding: [0x0f,0x9f,0x44,0x02,0x40]
722setg 64(%rdx,%rax)
723
724// CHECK: setge 485498096
725// CHECK: encoding: [0x0f,0x9d,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
726setge 485498096
727
728// CHECK: setge 64(%rdx)
729// CHECK: encoding: [0x0f,0x9d,0x42,0x40]
730setge 64(%rdx)
731
732// CHECK: setge 64(%rdx,%rax,4)
733// CHECK: encoding: [0x0f,0x9d,0x44,0x82,0x40]
734setge 64(%rdx,%rax,4)
735
736// CHECK: setge -64(%rdx,%rax,4)
737// CHECK: encoding: [0x0f,0x9d,0x44,0x82,0xc0]
738setge -64(%rdx,%rax,4)
739
740// CHECK: setge 64(%rdx,%rax)
741// CHECK: encoding: [0x0f,0x9d,0x44,0x02,0
742setge 64(%rdx,%rax)
743
744// CHECK: setge 64(%rdx,%rax)
745// CHECK: encoding: [0x0f,0x9d,0x44,0x02,0x40]
746setge 64(%rdx,%rax)
747
748// CHECK: setge %r14b
749// CHECK: encoding: [0x41,0x0f,0x9d,0xc6]
750setge %r14b
751
752// CHECK: setge (%rdx)
753// CHECK: encoding: [0x0f,0x9d,0x02]
754setge (%rdx)
755
756// CHECK: setg %r14b
757// CHECK: encoding: [0x41,0x0f,0x9f,0xc6]
758setg %r14b
759
760// CHECK: setg (%rdx)
761// CHECK: encoding: [0x0f,0x9f,0x02]
762setg (%rdx)
763
764// CHECK: setl 485498096
765// CHECK: encoding: [0x0f,0x9c,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
766setl 485498096
767
768// CHECK: setl 64(%rdx)
769// CHECK: encoding: [0x0f,0x9c,0x42,0x40]
770setl 64(%rdx)
771
772// CHECK: setl 64(%rdx,%rax,4)
773// CHECK: encoding: [0x0f,0x9c,0x44,0x82,0x40]
774setl 64(%rdx,%rax,4)
775
776// CHECK: setl -64(%rdx,%rax,4)
777// CHECK: encoding: [0x0f,0x9c,0x44,0x82,0xc0]
778setl -64(%rdx,%rax,4)
779
780// CHECK: setl 64(%rdx,%rax)
781// CHECK: encoding: [0x0f,0x9c,0x44,0x02,0x40]
782setl 64(%rdx,%rax)
783
784// CHECK: setle 485498096
785// CHECK: encoding: [0x0f,0x9e,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
786setle 485498096
787
788// CHECK: setle 64(%rdx)
789// CHECK: encoding: [0x0f,0x9e,0x42,0x40]
790setle 64(%rdx)
791
792// CHECK: setle 64(%rdx,%rax,4)
793// CHECK: encoding: [0x0f,0x9e,0x44,0x82,0x40]
794setle 64(%rdx,%rax,4)
795
796// CHECK: setle -64(%rdx,%rax,4)
797// CHECK: encoding: [0x0f,0x9e,0x44,0x82,0xc0]
798setle -64(%rdx,%rax,4)
799
800// CHECK: setle 64(%rdx,%rax)
801// CHECK: encoding: [0x0f,0x9e,0x44,0x02,0x40]
802setle 64(%rdx,%rax)
803
804// CHECK: setle %r14b
805// CHECK: encoding: [0x41,0x0f,0x9e,0xc6]
806setle %r14b
807
808// CHECK: setle (%rdx)
809// CHECK: encoding: [0x0f,0x9e,0x02]
810setle (%rdx)
811
812// CHECK: setl %r14b
813// CHECK: encoding: [0x41,0x0f,0x9c,0xc6]
814setl %r14b
815
816// CHECK: setl (%rdx)
817// CHECK: encoding: [0x0f,0x9c,0x02]
818setl (%rdx)
819
820// CHECK: setne 485498096
821// CHECK: encoding: [0x0f,0x95,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
822setne 485498096
823
824// CHECK: setne 64(%rdx)
825// CHECK: encoding: [0x0f,0x95,0x42,0x40]
826setne 64(%rdx)
827
828// CHECK: setne 64(%rdx,%rax,4)
829// CHECK: encoding: [0x0f,0x95,0x44,0x82,0x40]
830setne 64(%rdx,%rax,4)
831
832// CHECK: setne -64(%rdx,%rax,4)
833// CHECK: encoding: [0x0f,0x95,0x44,0x82,0xc0]
834setne -64(%rdx,%rax,4)
835
836// CHECK: setne 64(%rdx,%rax)
837// CHECK: encoding: [0x0f,0x95,0x44,0x02,0x40]
838setne 64(%rdx,%rax)
839
840// CHECK: setne %r14b
841// CHECK: encoding: [0x41,0x0f,0x95,0xc6]
842setne %r14b
843
844// CHECK: setne (%rdx)
845// CHECK: encoding: [0x0f,0x95,0x02]
846setne (%rdx)
847
848// CHECK: setno 485498096
849// CHECK: encoding: [0x0f,0x91,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
850setno 485498096
851
852// CHECK: setno 64(%rdx)
853// CHECK: encoding: [0x0f,0x91,0x42,0x40]
854setno 64(%rdx)
855
856// CHECK: setno 64(%rdx,%rax,4)
857// CHECK: encoding: [0x0f,0x91,0x44,0x82,0x40]
858setno 64(%rdx,%rax,4)
859
860// CHECK: setno -64(%rdx,%rax,4)
861// CHECK: encoding: [0x0f,0x91,0x44,0x82,0xc0]
862setno -64(%rdx,%rax,4)
863
864// CHECK: setno 64(%rdx,%rax)
865// CHECK: encoding: [0x0f,0x91,0x44,0x02,0x40]
866setno 64(%rdx,%rax)
867
868// CHECK: setno %r14b
869// CHECK: encoding: [0x41,0x0f,0x91,0xc6]
870setno %r14b
871
872// CHECK: setno (%rdx)
873// CHECK: encoding: [0x0f,0x91,0x02]
874setno (%rdx)
875
876// CHECK: setnp 485498096
877// CHECK: encoding: [0x0f,0x9b,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
878setnp 485498096
879
880// CHECK: setnp 64(%rdx)
881// CHECK: encoding: [0x0f,0x9b,0x42,0x40]
882setnp 64(%rdx)
883
884// CHECK: setnp 64(%rdx,%rax,4)
885// CHECK: encoding: [0x0f,0x9b,0x44,0x82,0x40]
886setnp 64(%rdx,%rax,4)
887
888// CHECK: setnp -64(%rdx,%rax,4)
889// CHECK: encoding: [0x0f,0x9b,0x44,0x82,0xc0]
890setnp -64(%rdx,%rax,4)
891
892// CHECK: setnp 64(%rdx,%rax)
893// CHECK: encoding: [0x0f,0x9b,0x44,0x02,0x40]
894setnp 64(%rdx,%rax)
895
896// CHECK: setnp %r14b
897// CHECK: encoding: [0x41,0x0f,0x9b,0xc6]
898setnp %r14b
899
900// CHECK: setnp (%rdx)
901// CHECK: encoding: [0x0f,0x9b,0x02]
902setnp (%rdx)
903
904// CHECK: setns 485498096
905// CHECK: encoding: [0x0f,0x99,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
906setns 485498096
907
908// CHECK: setns 64(%rdx)
909// CHECK: encoding: [0x0f,0x99,0x42,0x40]
910setns 64(%rdx)
911
912// CHECK: setns 64(%rdx,%rax,4)
913// CHECK: encoding: [0x0f,0x99,0x44,0x82,0x40]
914setns 64(%rdx,%rax,4)
915
916// CHECK: setns -64(%rdx,%rax,4)
917// CHECK: encoding: [0x0f,0x99,0x44,0x82,0xc0]
918setns -64(%rdx,%rax,4)
919
920// CHECK: setns 64(%rdx,%rax)
921// CHECK: encoding: [0x0f,0x99,0x44,0x02,0x40]
922setns 64(%rdx,%rax)
923
924// CHECK: setns %r14b
925// CHECK: encoding: [0x41,0x0f,0x99,0xc6]
926setns %r14b
927
928// CHECK: setns (%rdx)
929// CHECK: encoding: [0x0f,0x99,0x02]
930setns (%rdx)
931
932// CHECK: seto 485498096
933// CHECK: encoding: [0x0f,0x90,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
934seto 485498096
935
936// CHECK: seto 64(%rdx)
937// CHECK: encoding: [0x0f,0x90,0x42,0x40]
938seto 64(%rdx)
939
940// CHECK: seto 64(%rdx,%rax,4)
941// CHECK: encoding: [0x0f,0x90,0x44,0x82,0x40]
942seto 64(%rdx,%rax,4)
943
944// CHECK: seto -64(%rdx,%rax,4)
945// CHECK: encoding: [0x0f,0x90,0x44,0x82,0xc0]
946seto -64(%rdx,%rax,4)
947
948// CHECK: seto 64(%rdx,%rax)
949// CHECK: encoding: [0x0f,0x90,0x44,0x02,0x40]
950seto 64(%rdx,%rax)
951
952// CHECK: seto %r14b
953// CHECK: encoding: [0x41,0x0f,0x90,0xc6]
954seto %r14b
955
956// CHECK: seto (%rdx)
957// CHECK: encoding: [0x0f,0x90,0x02]
958seto (%rdx)
959
960// CHECK: setp 485498096
961// CHECK: encoding: [0x0f,0x9a,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
962setp 485498096
963
964// CHECK: setp 64(%rdx)
965// CHECK: encoding: [0x0f,0x9a,0x42,0x40]
966setp 64(%rdx)
967
968// CHECK: setp 64(%rdx,%rax,4)
969// CHECK: encoding: [0x0f,0x9a,0x44,0x82,0x40]
970setp 64(%rdx,%rax,4)
971
972// CHECK: setp -64(%rdx,%rax,4)
973// CHECK: encoding: [0x0f,0x9a,0x44,0x82,0xc0]
974setp -64(%rdx,%rax,4)
975
976// CHECK: setp 64(%rdx,%rax)
977// CHECK: encoding: [0x0f,0x9a,0x44,0x02,0x40]
978setp 64(%rdx,%rax)
979
980// CHECK: setp %r14b
981// CHECK: encoding: [0x41,0x0f,0x9a,0xc6]
982setp %r14b
983
984// CHECK: setp (%rdx)
985// CHECK: encoding: [0x0f,0x9a,0x02]
986setp (%rdx)
987
988// CHECK: sets 485498096
989// CHECK: encoding: [0x0f,0x98,0x04,0x25,0xf0,0x1c,0xf0,0x1c]
990sets 485498096
991
992// CHECK: sets 64(%rdx)
993// CHECK: encoding: [0x0f,0x98,0x42,0x40]
994sets 64(%rdx)
995
996// CHECK: sets 64(%rdx,%rax,4)
997// CHECK: encoding: [0x0f,0x98,0x44,0x82,0x40]
998sets 64(%rdx,%rax,4)
999
1000// CHECK: sets -64(%rdx,%rax,4)
1001// CHECK: encoding: [0x0f,0x98,0x44,0x82,0xc0]
1002sets -64(%rdx,%rax,4)
1003
1004// CHECK: sets 64(%rdx,%rax)
1005// CHECK: encoding: [0x0f,0x98,0x44,0x02,0x40]
1006sets 64(%rdx,%rax)
1007
1008// CHECK: sets %r14b
1009// CHECK: encoding: [0x41,0x0f,0x98,0xc6]
1010sets %r14b
1011
1012// CHECK: sets (%rdx)
1013// CHECK: encoding: [0x0f,0x98,0x02]
1014sets (%rdx)
1015
1016// CHECK: shldl $0, %r13d, %r13d
1017// CHECK: encoding: [0x45,0x0f,0xa4,0xed,0x00]
1018shldl $0, %r13d, %r13d
1019
1020// CHECK: shldl %cl, %r13d, %r13d
1021// CHECK: encoding: [0x45,0x0f,0xa5,0xed]
1022shldl %cl, %r13d, %r13d
1023
1024// CHECK: shrdl $0, %r13d, %r13d
1025// CHECK: encoding: [0x45,0x0f,0xac,0xed,0x00]
1026shrdl $0, %r13d, %r13d
1027
1028// CHECK: shrdl %cl, %r13d, %r13d
1029// CHECK: encoding: [0x45,0x0f,0xad,0xed]
1030shrdl %cl, %r13d, %r13d
1031
1032// CHECK: stosl %eax, %es:(%rdi)
1033// CHECK: encoding: [0xab]
1034stosl %eax, %es:(%rdi)
1035
1036// CHECK: tzcntl %r13d, %r13d
1037// CHECK: encoding: [0xf3,0x45,0x0f,0xbc,0xed]
1038tzcntl %r13d, %r13d
1039
1040