1 # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 | FileCheck %s
15 # CHECK: addb %al, (%rax)
19 0xe8 0x2e 0xfb 0xff 0xff
93 # CHECK: movl $0, -4(%rbp)
94 0xc7 0x45 0xfc 0x00 0x00 0x00 0x00
96 # CHECK: movq %cr0, %rcx
99 # CHECK: leaw 4(%esp), %cx
100 0x67 0x66 0x8d 0x4c 0x24 0x04
102 # CHECK: leal 4(%esp), %ecx
103 0x67 0x8d 0x4c 0x24 0x04
105 # CHECK: leaq 4(%esp), %rcx
106 0x67 0x48 0x8d 0x4c 0x24 0x04
108 # CHECK: leaw 4(%rsp), %cx
109 0x66 0x8d 0x4c 0x24 0x04
111 # CHECK: leal 4(%rsp), %ecx
114 # CHECK: leaq 4(%rsp), %rcx
115 0x48 0x8d 0x4c 0x24 0x04
117 # CHECK: enter $1, $2
120 # CHECK: movw $47416, -66(%rbp)
121 0x66 0xc7 0x45 0xbe 0x38 0xb9
123 # CHECK: vaddpd %ymm13, %ymm1, %ymm0
124 0xc4 0xc1 0x75 0x58 0xc5
126 # CHECK: vaddps %ymm3, %ymm1, %ymm0
129 # CHECK: vandpd %ymm13, %ymm1, %ymm0
130 0xc4 0xc1 0x75 0x54 0xc5
132 # CHECK: vandps %ymm3, %ymm1, %ymm0
138 # CHECK: vcvtps2pd %xmm0, %ymm0
141 # CHECK: vandps (%rdx), %xmm1, %xmm7
144 # CHECK: vcvtss2si %xmm0, %eax
147 # CHECK: vcvtsd2si %xmm0, %eax
150 # CHECK: vcvtsd2si %xmm0, %rax
151 0xc4 0xe1 0xfb 0x2d 0xc0
153 # CHECK: vcvtsd2si %xmm0, %rax
154 0xc4 0xe1 0xff 0x2d 0xc0
156 # CHECK: vmaskmovpd %xmm0, %xmm1, (%rax)
157 0xc4 0xe2 0x71 0x2f 0x00
159 # CHECK: vmovapd %xmm0, %xmm2
162 # Check X86 immediates print as signed values by default. radr://8795217
163 # CHECK: andq $-16, %rsp
166 # Check these special case instructions that the immediate is not sign-extend.
167 # CHECK: blendps $129, %xmm2, %xmm1
168 0x66 0x0f 0x3a 0x0c 0xca 0x81
170 # CHECK: blendpd $129, %xmm2, %xmm1
171 0x66 0x0f 0x3a 0x0d 0xca 0x81
173 # CHECK: pblendw $129, %xmm2, %xmm1
174 0x66 0x0f 0x3a 0x0e 0xca 0x81
176 # CHECK: mpsadbw $129, %xmm2, %xmm1
177 0x66 0x0f 0x3a 0x42 0xca 0x81
179 # CHECK: dpps $129, %xmm2, %xmm1
180 0x66 0x0f 0x3a 0x40 0xca 0x81
182 # CHECK: dppd $129, %xmm2, %xmm1
183 0x66 0x0f 0x3a 0x41 0xca 0x81
185 # CHECK: insertps $129, %xmm2, %xmm1
186 0x66 0x0f 0x3a 0x21 0xca 0x81
188 # CHECK: vblendps $129, %ymm2, %ymm5, %ymm1
189 0xc4 0xe3 0x55 0x0c 0xca 0x81
191 # CHECK: vblendps $129, (%rax), %ymm5, %ymm1
192 0xc4 0xe3 0x55 0x0c 0x08 0x81
194 # CHECK: vblendpd $129, %ymm2, %ymm5, %ymm1
195 0xc4 0xe3 0x55 0x0d 0xca 0x81
197 # CHECK: vblendpd $129, (%rax), %ymm5, %ymm1
198 0xc4 0xe3 0x55 0x0d 0x08 0x81
200 # CHECK: vpblendw $129, %xmm2, %xmm5, %xmm1
201 0xc4 0xe3 0x51 0x0e 0xca 0x81
203 # CHECK: vmpsadbw $129, %xmm2, %xmm5, %xmm1
204 0xc4 0xe3 0x51 0x42 0xca 0x81
206 # CHECK: vdpps $129, %ymm2, %ymm5, %ymm1
207 0xc4 0xe3 0x55 0x40 0xca 0x81
209 # CHECK: vdpps $129, (%rax), %ymm5, %ymm1
210 0xc4 0xe3 0x55 0x40 0x08 0x81
212 # CHECK: vdppd $129, %xmm2, %xmm5, %xmm1
213 0xc4 0xe3 0x51 0x41 0xca 0x81
215 # CHECK: vinsertps $129, %xmm3, %xmm2, %xmm1
216 0xc4 0xe3 0x69 0x21 0xcb 0x81
221 # CHECK: addl %eax, %edi
224 # CHECK: addl %edi, %eax
227 # CHECK: movl %eax, %edi
230 # CHECK: movl %edi, %eax
233 # CHECK: movups %xmm1, %xmm0
236 # CHECK: movups %xmm0, %xmm1
239 # CHECK: movaps %xmm1, %xmm0
242 # CHECK: movaps %xmm0, %xmm1
245 # CHECK: movupd %xmm1, %xmm0
248 # CHECK: movupd %xmm0, %xmm1
251 # CHECK: movapd %xmm1, %xmm0
254 # CHECK: movapd %xmm0, %xmm1
257 # CHECK: vmovups %xmm1, %xmm0
260 # CHECK: vmovups %xmm0, %xmm1
263 # CHECK: vmovaps %xmm1, %xmm0
266 # CHECK: vmovaps %xmm0, %xmm1
269 # CHECK: vmovupd %xmm1, %xmm0
272 # CHECK: vmovupd %xmm0, %xmm1
275 # CHECK: vmovapd %xmm1, %xmm0
278 # CHECK: vmovapd %xmm0, %xmm1
281 # CHECK: vmovups %ymm1, %ymm0
284 # CHECK: vmovups %ymm0, %ymm1
287 # CHECK: vmovups %ymm0, %ymm1
288 0xc4 0xe1 0xfc 0x11 0xc1
290 # CHECK: vmovaps %ymm1, %ymm0
293 # CHECK: vmovaps %ymm0, %ymm1
296 # CHECK: movdqa %xmm1, %xmm0
299 # CHECK: movdqa %xmm0, %xmm1
302 # CHECK: movdqu %xmm1, %xmm0
305 # CHECK: movdqu %xmm0, %xmm1
308 # CHECK: vmovdqa %xmm1, %xmm0
311 # CHECK: vmovdqa %xmm0, %xmm1
314 # CHECK: vmovdqa %ymm1, %ymm0
317 # CHECK: vmovdqa %ymm0, %ymm1
320 # CHECK: vmovdqu %xmm1, %xmm0
323 # CHECK: vmovdqu %xmm0, %xmm1
326 # CHECK: vmovdqu %ymm1, %ymm0
329 # CHECK: vmovdqu %ymm0, %ymm1
332 # CHECK: vblendvps %xmm4, %xmm1, %xmm2, %xmm3
333 0xc4 0xe3 0x69 0x4a 0xd9 0x41
335 # CHECK: vroundpd $0, %xmm0, %xmm0
336 0xc4 0xe3 0x79 0x09 0xc0 0x00
338 # CHECK: vroundps $0, %xmm0, %xmm0
339 0xc4 0xe3 0x79 0x08 0xc0 0x00
341 # CHECK: vroundpd $0, %ymm0, %ymm0
342 0xc4 0xe3 0x7d 0x09 0xc0 0x00
344 # CHECK: vroundps $0, %ymm0, %ymm0
345 0xc4 0xe3 0x7d 0x08 0xc0 0x00
347 # CHECK: vroundss $0, %xmm0, %xmm0, %xmm0
348 0xc4 0xe3 0x79 0x0a 0xc0 0x00
350 # CHECK: vroundsd $0, %xmm0, %xmm0, %xmm0
351 0xc4 0xe3 0x79 0x0b 0xc0 0x00
353 # CHECK: crc32b %al, %eax
354 0xf2 0x0f 0x38 0xf0 0xc0
356 # CHECK: crc32w %ax, %eax
357 0x66 0xf2 0x0f 0x38 0xf1 0xc0
359 # CHECK: crc32l %eax, %eax
360 0xf2 0x0f 0x38 0xf1 0xc0
362 # CHECK: crc32q %rax, %rax
363 0xf2 0x48 0x0f 0x38 0xf1 0xc0
365 # CHECK: invept (%rax), %rax
366 0x66 0x0f 0x38 0x80 0x00
368 # CHECK: invvpid (%rax), %rax
369 0x66 0x0f 0x38 0x81 0x00
371 # CHECK: invpcid (%rax), %rax
372 0x66 0x0f 0x38 0x82 0x00
377 # CHECK: xchgl %r8d, %eax
380 # CHECK: xchgq %r8, %rax
383 # CHECK: xchgl %r9d, %eax
386 # CHECK: xchgq %r9, %rax
389 # CHECK: xchgl %ecx, %eax
392 # CHECK: xchgq %rcx, %rax
395 # CHECK: addb $0, %al
398 # CHECK: addw $0, %ax
401 # CHECK: addl $0, %eax
402 0x05 0x00 0x00 0x00 0x00
404 # CHECK: addq $0, %rax
405 0x48 0x05 0x00 0x00 0x00 0x00
407 # CHECK: adcb $0, %al
410 # CHECK: adcw $0, %ax
413 # CHECK: adcl $0, %eax
414 0x15 0x00 0x00 0x00 0x00
416 # CHECK: adcq $0, %rax
417 0x48 0x15 0x00 0x00 0x00 0x00
419 # CHECK: cmpb $0, %al
422 # CHECK: cmpw $0, %ax
425 # CHECK: cmpl $0, %eax
426 0x3d 0x00 0x00 0x00 0x00
428 # CHECK: cmpq $0, %rax
429 0x48 0x3d 0x00 0x00 0x00 0x00
431 # CHECK: testb $0, %al
434 # CHECK: testw $0, %ax
437 # CHECK: testl $0, %eax
438 0xa9 0x00 0x00 0x00 0x00
440 # CHECK: testq $0, %rax
441 0x48 0xa9 0x00 0x00 0x00 0x00
443 # CHECK: vaddps %xmm3, %xmm15, %xmm0
444 0xc4 0xe1 0x00 0x58 0xc3
446 # CHECK: movbel (%rax), %eax
449 # CHECK: movbel %eax, (%rax)
452 # CHECK: movbew (%rax), %ax
453 0x66 0x0f 0x38 0xf0 0x00
455 # CHECK: movbew %ax, (%rax)
456 0x66 0x0f 0x38 0xf1 0x00
458 # CHECK: movbeq (%rax), %rax
459 0x48 0x0f 0x38 0xf0 0x00
461 # CHECK: movbeq %rax, (%rax)
462 0x48 0x0f 0x38 0xf1 0x00
467 # CHECK: rdrandl %eax
470 # CHECK: rdrandq %rax
473 # CHECK: vroundss $0, %xmm0, %xmm0, %xmm0
474 0xc4 0xe3 0x7d 0x0a 0xc0 0x00
476 # CHECK: vroundsd $0, %xmm0, %xmm0, %xmm0
477 0xc4 0xe3 0x7d 0x0b 0xc0 0x00
479 # CHECK: vcvtsd2si %xmm0, %eax
480 0xc4 0xe1 0x7f 0x2d 0xc0
482 # CHECK: vcvtsd2si %xmm0, %rax
483 0xc4 0xe1 0xff 0x2d 0xc0
485 # CHECK: vucomisd %xmm1, %xmm0
488 # CHECK: vucomiss %xmm1, %xmm0
491 # CHECK: vcomisd %xmm1, %xmm0
494 # CHECK: vcomiss %xmm1, %xmm0
497 # CHECK: vaddss %xmm1, %xmm0, %xmm0
500 # CHECK: xsave (%rax)
503 # CHECK: xrstor (%rax)
506 # CHECK: xsaveopt (%rax)
509 # CHECK: rdfsbasel %eax
512 # CHECK: rdgsbasel %eax
515 # CHECK: wrfsbasel %eax
518 # CHECK: wrgsbasel %eax
521 # CHECK: rdfsbaseq %rax
522 0xf3 0x48 0x0f 0xae 0xc0
524 # CHECK: rdgsbaseq %rax
525 0xf3 0x48 0x0f 0xae 0xc8
527 # CHECK: wrfsbaseq %rax
528 0xf3 0x48 0x0f 0xae 0xd0
530 # CHECK: wrgsbaseq %rax
531 0xf3 0x48 0x0f 0xae 0xd8
533 # CHECK: vcvtph2ps %xmm0, %xmm0
534 0xc4 0xe2 0x79 0x13 0xc0
536 # CHECK: vcvtph2ps (%rax), %xmm0
537 0xc4 0xe2 0x79 0x13 0x00
539 # CHECK: vcvtph2ps %xmm0, %ymm0
540 0xc4 0xe2 0x7d 0x13 0xc0
542 # CHECK: vcvtph2ps (%rax), %ymm0
543 0xc4 0xe2 0x7d 0x13 0x00
545 # CHECK: vcvtps2ph $0, %xmm0, %xmm0
546 0xc4 0xe3 0x79 0x1d 0xc0 0x00
548 # CHECK: vcvtps2ph $0, %xmm0, (%rax)
549 0xc4 0xe3 0x79 0x1d 0x00 0x00
551 # CHECK: vcvtps2ph $0, %ymm0, %xmm0
552 0xc4 0xe3 0x7d 0x1d 0xc0 0x00
554 # CHECK: vcvtps2ph $0, %ymm0, (%rax)
555 0xc4 0xe3 0x7d 0x1d 0x00 0x00
557 # CHECK: popcntl %eax, %eax
560 # CHECK: popcntw %ax, %ax
561 0x66 0xf3 0x0f 0xb8 0xc0
563 # CHECK: popcntq %rax, %rax
564 0xf3 0x48 0x0f 0xb8 0xc0
566 # CHECK: lzcntl %eax, %eax
569 # CHECK: lzcntw %ax, %ax
570 0x66 0xf3 0x0f 0xbd 0xc0
572 # CHECK: lzcntq %rax, %rax
573 0xf3 0x48 0x0f 0xbd 0xc0
575 # CHECK: tzcntl %eax, %eax
578 # CHECK: tzcntw %ax, %ax
579 0x66 0xf3 0x0f 0xbc 0xc0
581 # CHECK: tzcntq %rax, %rax
582 0xf3 0x48 0x0f 0xbc 0xc0
584 # CHECK: andnl %ecx, %r15d, %eax
585 0xc4 0xe2 0x00 0xf2 0xc1
587 # CHECK: andnq %rax, %r15, %rax
588 0xc4 0xe2 0x80 0xf2 0xc0
590 # CHECK: andnl (%rax), %r15d, %eax
591 0xc4 0xe2 0x00 0xf2 0x00
593 # CHECK: andnq (%rax), %r15, %rax
594 0xc4 0xe2 0x80 0xf2 0x00
596 # CHECK: blsrl (%rax), %r15d
597 0xc4 0xe2 0x00 0xf3 0x08
599 # CHECK: blsrq (%rax), %r15
600 0xc4 0xe2 0x80 0xf3 0x08
602 # CHECK: blsmskl (%rax), %r15d
603 0xc4 0xe2 0x00 0xf3 0x10
605 # CHECK: blsmskq (%rax), %r15
606 0xc4 0xe2 0x80 0xf3 0x10
608 # CHECK: blsil (%rax), %r15d
609 0xc4 0xe2 0x00 0xf3 0x18
611 # CHECK: blsiq (%rax), %r15
612 0xc4 0xe2 0x80 0xf3 0x18
614 # CHECK: bextrl %r12d, (%rax), %r10d
615 0xc4 0x62 0x18 0xf7 0x10
617 # CHECK: bextrl %r12d, %r11d, %r10d
618 0xc4 0x42 0x18 0xf7 0xd3
620 # CHECK: bextrq %r12, (%rax), %r10
621 0xc4 0x62 0x98 0xf7 0x10
623 # CHECK: bextrq %r12, %r11, %r10
624 0xc4 0x42 0x98 0xf7 0xd3
626 # CHECK: bzhil %r12d, (%rax), %r10d
627 0xc4 0x62 0x18 0xf5 0x10
629 # CHECK: bzhil %r12d, %r11d, %r10d
630 0xc4 0x42 0x18 0xf5 0xd3
632 # CHECK: bzhiq %r12, (%rax), %r10
633 0xc4 0x62 0x98 0xf5 0x10
635 # CHECK: bzhiq %r12, %r11, %r10
636 0xc4 0x42 0x98 0xf5 0xd3
638 # CHECK: pextl %r12d, %r11d, %r10d
639 0xc4 0x42 0x22 0xf5 0xd4
641 # CHECK: pextl (%rax), %r11d, %r10d
642 0xc4 0x62 0x22 0xf5 0x10
644 # CHECK: pextq %r12, %r11, %r10
645 0xc4 0x42 0xa2 0xf5 0xd4
647 # CHECK: pextq (%rax), %r11, %r10
648 0xc4 0x62 0xa2 0xf5 0x10
650 # CHECK: pdepl %r12d, %r11d, %r10d
651 0xc4 0x42 0x23 0xf5 0xd4
653 # CHECK: pdepl (%rax), %r11d, %r10d
654 0xc4 0x62 0x23 0xf5 0x10
656 # CHECK: pdepq %r12, %r11, %r10
657 0xc4 0x42 0xa3 0xf5 0xd4
659 # CHECK: pdepq (%rax), %r11, %r10
660 0xc4 0x62 0xa3 0xf5 0x10
662 # CHECK: mulxl %r12d, %r11d, %r10d
663 0xc4 0x42 0x23 0xf6 0xd4
665 # CHECK: mulxl (%rax), %r11d, %r10d
666 0xc4 0x62 0x23 0xf6 0x10
668 # CHECK: mulxq %r12, %r11, %r10
669 0xc4 0x42 0xa3 0xf6 0xd4
671 # CHECK: mulxq (%rax), %r11, %r10
672 0xc4 0x62 0xa3 0xf6 0x10
674 # CHECK: rorxl $1, %r12d, %r10d
675 0xc4 0x43 0x7b 0xf0 0xd4 0x01
677 # CHECK: rorxl $31, (%rax), %r10d
678 0xc4 0x63 0x7b 0xf0 0x10 0x1f
680 # CHECK: rorxq $1, %r12, %r10
681 0xc4 0x43 0xfb 0xf0 0xd4 0x01
683 # CHECK: rorxq $63, (%rax), %r10
684 0xc4 0x63 0xfb 0xf0 0x10 0x3f
686 # CHECK: shlxl %r12d, (%rax), %r10d
687 0xc4 0x62 0x19 0xf7 0x10
689 # CHECK: shlxl %r12d, %r11d, %r10d
690 0xc4 0x42 0x19 0xf7 0xd3
692 # CHECK: shlxq %r12, (%rax), %r10
693 0xc4 0x62 0x99 0xf7 0x10
695 # CHECK: shlxq %r12, %r11, %r10
696 0xc4 0x42 0x99 0xf7 0xd3
698 # CHECK: sarxl %r12d, (%rax), %r10d
699 0xc4 0x62 0x1a 0xf7 0x10
701 # CHECK: sarxl %r12d, %r11d, %r10d
702 0xc4 0x42 0x1a 0xf7 0xd3
704 # CHECK: sarxq %r12, (%rax), %r10
705 0xc4 0x62 0x9a 0xf7 0x10
707 # CHECK: sarxq %r12, %r11, %r10
708 0xc4 0x42 0x9a 0xf7 0xd3
710 # CHECK: shrxl %r12d, (%rax), %r10d
711 0xc4 0x62 0x1b 0xf7 0x10
713 # CHECK: shrxl %r12d, %r11d, %r10d
714 0xc4 0x42 0x1b 0xf7 0xd3
716 # CHECK: shrxq %r12, (%rax), %r10
717 0xc4 0x62 0x9b 0xf7 0x10
719 # CHECK: shrxq %r12, %r11, %r10
720 0xc4 0x42 0x9b 0xf7 0xd3
722 # CHECK: vfmadd132ps %xmm11, %xmm12, %xmm10
723 0xc4 0x42 0x19 0x98 0xd3
725 # CHECK: vfmadd132pd %xmm11, %xmm12, %xmm10
726 0xc4 0x42 0x99 0x98 0xd3
728 # CHECK: vfmadd132ps %ymm11, %ymm12, %ymm10
729 0xc4 0x42 0x1d 0x98 0xd3
731 # CHECK: vfmadd132pd %ymm11, %ymm12, %ymm10
732 0xc4 0x42 0x9d 0x98 0xd3
734 # CHECK: vfmadd132ps (%rax), %xmm12, %xmm10
735 0xc4 0x62 0x19 0x98 0x10
737 # CHECK: vfmadd132pd (%rax), %xmm12, %xmm10
738 0xc4 0x62 0x99 0x98 0x10
740 # CHECK: vfmadd132ps (%rax), %ymm12, %ymm10
741 0xc4 0x62 0x1d 0x98 0x10
743 # CHECK: vfmadd132pd (%rax), %ymm12, %ymm10
744 0xc4 0x62 0x9d 0x98 0x10
746 # CHECK: vfmadd132ss %xmm11, %xmm12, %xmm10
747 0xc4 0x42 0x19 0x99 0xd3
749 # CHECK: vfmadd132sd %xmm11, %xmm12, %xmm10
750 0xc4 0x42 0x99 0x99 0xd3
752 # CHECK: vfmadd132ss (%rax), %xmm12, %xmm10
753 0xc4 0x62 0x19 0x99 0x10
755 # CHECK: vfmadd132sd (%rax), %xmm12, %xmm10
756 0xc4 0x62 0x99 0x99 0x10
758 # CHECK: vfmaddss (%rcx), %xmm1, %xmm0, %xmm0
759 0xc4 0xe3 0xf9 0x6a 0x01 0x10
761 # CHECK: vfmaddss %xmm1, (%rcx), %xmm0, %xmm0
762 0xc4 0xe3 0x79 0x6a 0x01 0x10
764 # CHECK: vfmaddss (%rcx), %xmm1, %xmm0, %xmm0
765 0xc4 0xe3 0xfd 0x6a 0x01 0x10
767 # CHECK: vfmaddss %xmm1, (%rcx), %xmm0, %xmm0
768 0xc4 0xe3 0x7d 0x6a 0x01 0x10
770 # CHECK: vfmaddss %xmm2, %xmm1, %xmm0, %xmm0
771 0xc4 0xe3 0xf9 0x6a 0xc2 0x10
773 # CHECK: vfmaddss %xmm1, %xmm2, %xmm0, %xmm0
774 0xc4 0xe3 0x79 0x6a 0xc2 0x10
776 # CHECK: vfmaddss %xmm2, %xmm1, %xmm0, %xmm0
777 0xc4 0xe3 0xfd 0x6a 0xc2 0x10
779 # CHECK: vfmaddss %xmm1, %xmm2, %xmm0, %xmm0
780 0xc4 0xe3 0x7d 0x6a 0xc2 0x10
782 # CHECK: vfmaddps (%rcx), %xmm1, %xmm0, %xmm0
783 0xc4 0xe3 0xf9 0x68 0x01 0x10
785 # CHECK: vfmaddps %xmm1, (%rcx), %xmm0, %xmm0
786 0xc4 0xe3 0x79 0x68 0x01 0x10
788 # CHECK: vfmaddps %xmm1, %xmm2, %xmm0, %xmm0
789 0xc4 0xe3 0x79 0x68 0xc2 0x10
791 # CHECK: vfmaddps %xmm2, %xmm1, %xmm0, %xmm0
792 0xc4 0xe3 0xf9 0x68 0xc2 0x10
794 # CHECK: vfmaddps (%rcx), %ymm1, %ymm0, %ymm0
795 0xc4 0xe3 0xfd 0x68 0x01 0x10
797 # CHECK: vfmaddps %ymm1, (%rcx), %ymm0, %ymm0
798 0xc4 0xe3 0x7d 0x68 0x01 0x10
800 # CHECK: vfmaddps %ymm1, %ymm2, %ymm0, %ymm0
801 0xc4 0xe3 0x7d 0x68 0xc2 0x10
803 # CHECK: vfmaddps %ymm2, %ymm1, %ymm0, %ymm0
804 0xc4 0xe3 0xfd 0x68 0xc2 0x10
806 # CHECK: vpermil2ps $0, %xmm4, %xmm3, %xmm2, %xmm1
807 0xc4 0xe3 0x69 0x48 0xcb 0x40
809 # CHECK: vpermil2ps $1, 4(%rax), %xmm2, %xmm3, %xmm0
810 0xc4 0xe3 0xe1 0x48 0x40 0x04 0x21
812 # CHECK: vpermil2ps $2, (%rax), %ymm1, %ymm5, %ymm6
813 0xc4 0xe3 0xd5 0x48 0x30 0x12
815 # CHECK: vpermil2ps $3, %xmm1, (%rax), %xmm3, %xmm4
816 0xc4 0xe3 0x61 0x48 0x20 0x13
818 # CHECK: vpermil2ps $0, %ymm4, %ymm4, %ymm2, %ymm2
819 0xc4 0xe3 0x6d 0x48 0xd4 0x40
821 # CHECK: vpermil2pd $1, %ymm1, 4(%rax), %ymm1, %ymm0
822 0xc4 0xe3 0x75 0x49 0x40 0x04 0x11
824 # CHECK: vgatherdpd %xmm0, (%rdi,%xmm1,2), %xmm2
825 0xc4 0xe2 0xf9 0x92 0x14 0x4f
827 # CHECK: vgatherdpd %ymm0, (%rdi,%xmm1,2), %ymm2
828 0xc4 0xe2 0xfd 0x92 0x14 0x4f
830 # CHECK: vgatherqps %xmm8, (%r15,%xmm9,2), %xmm10
831 0xc4 0x02 0x39 0x93 0x14 0x4f
833 # CHECK: vgatherqps %xmm8, (%r15,%ymm9,2), %xmm10
834 0xc4 0x02 0x3d 0x93 0x14 0x4f
836 # CHECK: vpgatherdq %xmm0, (%rdi,%xmm1,2), %xmm2
837 0xc4 0xe2 0xf9 0x90 0x14 0x4f
839 # CHECK: vpgatherdq %ymm0, (%rdi,%xmm1,2), %ymm2
840 0xc4 0xe2 0xfd 0x90 0x14 0x4f
842 # CHECK: vpgatherqd %xmm8, (%r15,%xmm9,2), %xmm10
843 0xc4 0x02 0x39 0x91 0x14 0x4f
845 # CHECK: vpgatherqd %xmm8, (%r15,%ymm9,2), %xmm10
846 0xc4 0x02 0x3d 0x91 0x14 0x4f
848 # rdar://8812056 lldb doesn't print the x86 lock prefix when disassembling
850 # CHECK-NEXT: xaddq %rcx, %rbx
851 0xf0 0x48 0x0f 0xc1 0xcb
853 # rdar://13493622 lldb doesn't print the x86 rep/repne prefix when disassembling
858 # CHECK: repne movb $0, (%rax)
861 # rdar://11019859 Support 2013 Haswell RTM instructions and HLE prefixes
864 # CHECK-NEXT: incl (%rax)
868 # CHECK-NEXT: xchgl %ebx, %eax
871 # CHECK-NEXT: xchgl %ebx, (%rax)
874 # CHECK-NEXT: movb %al, (%rbx)
877 # CHECK-NEXT: movl %eax, (%rbx)
880 # CHECK-NEXT: movb $1, (%rbx)
883 # CHECK-NEXT: movl $1, (%rbx)
884 0xf3 0xc7 0x03 0x01 0x00 0x00 0x00
887 # CHECK-NEXT: xchgl %ebx, %eax
890 # CHECK-NEXT: xchgl %ebx, (%rax)
893 # CHECK: bextrl $2814, %edi, %eax
894 0x8f 0xea 0x78 0x10 0xc7 0xfe 0x0a 0x00 0x00
896 # CHECK: blciq %rdi, %rax
897 0x8f 0xe9 0xf8 0x02 0xf7
899 # CHECK: vpcmov %xmm1, %xmm2, %xmm3, %xmm4
900 0x8f 0xe8 0x60 0xa2 0xe2 0x10
902 # CHECK: vpcmov (%rax), %xmm2, %xmm3, %xmm4
903 0x8f 0xe8 0xe0 0xa2 0x20 0x20
905 # CHECK: vpcmov %xmm1, (%rax), %xmm3, %xmm4
906 0x8f 0xe8 0x60 0xa2 0x20 0x10
908 # CHECK: vpcmov %ymm1, %ymm2, %ymm3, %ymm4
909 0x8f 0xe8 0x64 0xa2 0xe2 0x10
911 # CHECK: vpcmov %ymm2, %ymm1, %ymm3, %ymm4
912 0x8f 0xe8 0xe4 0xa2 0xe2 0x10
914 # CHECK: vpcmov (%rax), %ymm2, %ymm3, %ymm4
915 0x8f 0xe8 0xe4 0xa2 0x20 0x20
917 # CHECK: vpcmov %ymm1, (%rax), %ymm3, %ymm4
918 0x8f 0xe8 0x64 0xa2 0x20 0x10
920 # CHECK: vpermil2pd $0, %xmm3, %xmm2, %xmm1, %xmm0
921 0xc4 0xe3 0x71 0x49 0xc2 0x30
923 # CHECK: vpermil2pd $0, %xmm2, %xmm3, %xmm1, %xmm0
924 0xc4 0xe3 0xf1 0x49 0xc2 0x30
926 # CHECK: vpcomeqb %xmm6, %xmm4, %xmm2
927 0x8f 0xe8 0x58 0xcc 0xd6 0x04
929 # CHECK: vpcomneqb 8(%rax), %xmm3, %xmm2
930 0x8f 0xe8 0x60 0xcc 0x50 0x08 0x05
932 # CHECK: vpcomb $55, %xmm6, %xmm4, %xmm2
933 0x8f 0xe8 0x58 0xcc 0xd6 0x37
935 # CHECK: vpcomb $56, 8(%rax), %xmm3, %xmm2
936 0x8f 0xe8 0x60 0xcc 0x50 0x08 0x38
938 # CHECK: vpmacsdd %xmm4, %xmm6, %xmm4, %xmm2
939 0x8f 0xe8 0x58 0x9e 0xd6 0x40
940 # CHECK: vpmacsdd %xmm4, (%rax,%rcx), %xmm4, %xmm3
941 0x8f 0xe8 0x58 0x9e 0x1c 0x08 0x40
943 # CHECK: vprotd (%rax), %xmm0, %xmm3
944 0x8f 0xe9 0xf8 0x92 0x18
945 # CHECK: vprotd %xmm2, (%rax,%rcx), %xmm4
946 0x8f 0xe9 0x68 0x92 0x24 0x08
947 # CHECK: vprotd %xmm5, %xmm3, %xmm2
948 0x8f 0xe9 0x50 0x92 0xd3
949 # CHECK: vprotd $43, (%rcx), %xmm6
950 0x8f 0xe8 0x78 0xc2 0x31 0x2b
951 # CHECK: vprotd $44, (%rax,%rcx), %xmm7
952 0x8f 0xe8 0x78 0xc2 0x3c 0x08 0x2c
953 # CHECK: vprotd $45, %xmm4, %xmm4
954 0x8f 0xe8 0x78 0xc2 0xe4 0x2d
956 # CHECK: vfrczps 4(%rax), %xmm3
957 0x8f 0xe9 0x78 0x80 0x58 0x04
958 # CHECK: vfrczps %xmm6, %xmm5
959 0x8f 0xe9 0x78 0x80 0xee
960 # CHECK: vfrczps (%rcx), %xmm1
961 0x8f 0xe9 0x78 0x80 0x09
962 # CHECK: vfrczps %ymm2, %ymm4
963 0x8f 0xe9 0x7c 0x80 0xe2