1 # RUN: llvm-mc --disassemble %s -triple=i686-linux-gnu-code16 | FileCheck %s
3 # CHECK: movl $305419896, %ebx
4 0x66 0xbb 0x78 0x56 0x34 0x12
27 # CHECK: movl %eax, 16(%ebp)
28 0x67 0x66 0x89 0x45 0x10
30 # CHECK: movl %eax, -16(%ebp)
31 0x67 0x66 0x89 0x45 0xf0
33 # CHECK: testb %cl, %bl
36 # CHECK: cmpl %eax, %ebx
39 # CHECK: addw %ax, %ax
87 # CHECK: cmoval %eax, %edx
90 # CHECK: cmovael %eax, %edx
93 # CHECK: cmovbel %eax, %edx
96 # CHECK: cmovbl %eax, %edx
99 # CHECK: cmovbw %bx, %bx
102 # CHECK: cmovbel %eax, %edx
105 # CHECK: cmovbl %eax, %edx
108 # CHECK: cmovel %eax, %edx
111 # CHECK: cmovgl %eax, %edx
114 # CHECK: cmovgel %eax, %edx
117 # CHECK: cmovll %eax, %edx
120 # CHECK: cmovlel %eax, %edx
123 # CHECK: cmovbel %eax, %edx
126 # CHECK: cmovnel %eax, %edx
129 # CHECK: cmovael %eax, %edx
132 # CHECK: cmoval %eax, %edx
135 # CHECK: cmovael %eax, %edx
138 # CHECK: cmovnel %eax, %edx
141 # CHECK: cmovlel %eax, %edx
144 # CHECK: cmovgel %eax, %edx
147 # CHECK: cmovnel %eax, %edx
150 # CHECK: cmovlel %eax, %edx
153 # CHECK: cmovll %eax, %edx
156 # CHECK: cmovgel %eax, %edx
159 # CHECK: cmovgl %eax, %edx
162 # CHECK: cmovnol %eax, %edx
165 # CHECK: cmovnpl %eax, %edx
168 # CHECK: cmovnsl %eax, %edx
171 # CHECK: cmovnel %eax, %edx
174 # CHECK: cmovol %eax, %edx
177 # CHECK: cmovpl %eax, %edx
180 # CHECK: cmovsl %eax, %edx
183 # CHECK: cmovel %eax, %edx
195 # CHECK: fsubr %st(0)
198 # CHECK: fdivr %st(0)
204 # CHECK: movl %cs, %eax
207 # CHECK: movw %cs, %ax
210 # CHECK: movw %cs, (%eax)
213 # CHECK: movw %cs, (%eax)
216 # CHECK: movl %eax, %cs
219 # CHECK: movw (%eax), %cs
222 # CHECK: movw (%eax), %cs
225 # CHECKX: movl %cr0, %eax
228 # CHECKX: movl %cr1, %eax
231 # CHECKX: movl %cr2, %eax
234 # CHECKX: movl %cr3, %eax
237 # CHECKX: movl %cr4, %eax
240 # CHECKX: movl %dr0, %eax
243 # CHECKX: movl %dr1, %eax
246 # CHECKX: movl %dr1, %eax
249 # CHECKX: movl %dr2, %eax
252 # CHECKX: movl %dr3, %eax
255 # CHECKX: movl %dr4, %eax
258 # CHECKX: movl %dr5, %eax
261 # CHECKX: movl %dr6, %eax
264 # CHECKX: movl %dr7, %eax
270 # CHECK: movl %gs:124, %eax
271 0x65 0x66 0x8b 0x06 0x7c 0x00
291 # CHECK: jmpw *8(%eax)
294 # CHECK: jmpl *8(%eax)
295 0x67 0x66 0xff 0x60 0x08
297 # CHECK: lcalll $2, $4660
298 0x66 0x9a 0x34 0x12 0x00 0x00 0x02 0x00
321 # CHECK: testl %ecx, -24(%ebp)
322 0x67 0x66 0x85 0x4d 0xe8
324 # CHECK: testl %ecx, -24(%ebp)
325 0x67 0x66 0x85 0x4d 0xe8
459 # CHECK: lcalll $31438, $31438
460 0x66 0x9a 0xce 0x7a 0x00 0x00 0xce 0x7a
462 # CHECK: lcalll $31438, $31438
463 0x66 0x9a 0xce 0x7a 0x00 0x00 0xce 0x7a
465 # CHECK: ljmpl $31438, $31438
466 0x66 0xea 0xce 0x7a 0x00 0x00 0xce 0x7a
468 # CHECK: ljmpl $31438, $31438
469 0x66 0xea 0xce 0x7a 0x00 0x00 0xce 0x7a
471 # CHECK: lcallw $31438, $31438
472 0x9a 0xce 0x7a 0xce 0x7a
474 # CHECK: lcallw $31438, $31438
475 0x9a 0xce 0x7a 0xce 0x7a
477 # CHECK: ljmpw $31438, $31438
478 0xea 0xce 0x7a 0xce 0x7a
480 # CHECK: ljmpw $31438, $31438
481 0xea 0xce 0x7a 0xce 0x7a
483 # CHECK: lcallw $31438, $31438
484 0x9a 0xce 0x7a 0xce 0x7a
486 # CHECK: lcallw $31438, $31438
487 0x9a 0xce 0x7a 0xce 0x7a
489 # CHECK: ljmpw $31438, $31438
490 0xea 0xce 0x7a 0xce 0x7a
492 # CHECK: ljmpw $31438, $31438
493 0xea 0xce 0x7a 0xce 0x7a
496 0x66 0xe8 0x00 0x00 0x00 0x00
519 # CHECK: pshufw $14, %mm4, %mm0
522 # CHECK: pshufw $90, %mm4, %mm0
558 # CHECK: lretw $31438
564 # CHECK: lretw $31438
570 # CHECK: lretl $31438
573 # CHECK: bound %bx, 2(%eax)
576 # CHECK: bound %ecx, 4(%ebx)
577 0x67 0x66 0x62 0x4b 0x04
579 # CHECK: arpl %bx, %bx
582 # CHECK: arpl %bx, 6(%ecx)
585 # CHECK: lgdtw 4(%eax)
586 0x67 0x0f 0x01 0x50 0x04
588 # CHECK: lgdtw 4(%eax)
589 0x67 0x0f 0x01 0x50 0x04
591 # CHECK: lgdtl 4(%eax)
592 0x67 0x66 0x0f 0x01 0x50 0x04
594 # CHECK: lidtw 4(%eax)
595 0x67 0x0f 0x01 0x58 0x04
597 # CHECK: lidtw 4(%eax)
598 0x67 0x0f 0x01 0x58 0x04
600 # CHECK: lidtl 4(%eax)
601 0x67 0x66 0x0f 0x01 0x58 0x04
603 # CHECK: sgdtw 4(%eax)
604 0x67 0x0f 0x01 0x40 0x04
606 # CHECK: sgdtw 4(%eax)
607 0x67 0x0f 0x01 0x40 0x04
609 # CHECK: sgdtl 4(%eax)
610 0x67 0x66 0x0f 0x01 0x40 0x04
612 # CHECK: sidtw 4(%eax)
613 0x67 0x0f 0x01 0x48 0x04
615 # CHECK: sidtw 4(%eax)
616 0x67 0x0f 0x01 0x48 0x04
618 # CHECK: sidtl 4(%eax)
619 0x67 0x66 0x0f 0x01 0x48 0x04
621 # CHECK: fcompi %st(2)
624 # CHECK: fcompi %st(2)
627 # CHECK: fcompi %st(1)
630 # CHECK: fucompi %st(2)
633 # CHECK: fucompi %st(2)
636 # CHECK: fucompi %st(1)
645 # CHECK: fnstcw 32493
648 # CHECK: fnstcw 32493
654 # CHECK: fnstcw 32493
660 # CHECK: fnstcw 32493
663 # CHECK: fnstsw 32493
666 # CHECK: fnstsw 32493
672 # CHECK: fnstsw 32493
678 # CHECK: fnstsw 32493
682 0x0f 0x00 0x26 0xed 0x7e
685 0x0f 0x00 0x26 0xed 0x7e
762 # CHECK: fsubp %st, %st(1)
765 # CHECK: fsubp %st, %st(2)
774 # CHECK: xchgl %ecx, %eax
777 # CHECK: xchgl %ecx, %eax
798 # CHECK: umonitor %ax
801 # CHECK: umonitor %eax
802 0x67 0xf3 0x0f 0xae 0xf0
804 #CHECK: movdir64b (%esi), %eax
805 0x67 0x66 0x0f 0x38 0xf8 0x06
807 #CHECK: movdir64b (%si), %ax
808 0x66 0x0f 0x38 0xf8 0x04
810 # CHECK: enqcmd (%bx), %di
811 0xf2,0x0f,0x38,0xf8,0x3f
813 # CHECK: enqcmd 8128(%si), %ax
814 0xf2,0x0f,0x38,0xf8,0x84,0xc0,0x1f
816 # CHECK: enqcmd -8192(%di), %bx
817 0xf2,0x0f,0x38,0xf8,0x9d,0x00,0xe0
819 # CHECK: enqcmd 7408, %cx
820 0xf2,0x0f,0x38,0xf8,0x0e,0xf0,0x1c
822 # CHECK: enqcmds (%bx), %di
823 0xf3,0x0f,0x38,0xf8,0x3f
825 # CHECK: enqcmds 8128(%si), %ax
826 0xf3,0x0f,0x38,0xf8,0x84,0xc0,0x1f
828 # CHECK: enqcmds -8192(%di), %bx
829 0xf3,0x0f,0x38,0xf8,0x9d,0x00,0xe0
831 # CHECK: enqcmds 7408, %cx
832 0xf3,0x0f,0x38,0xf8,0x0e,0xf0,0x1c
834 # CHECK: enqcmd (%edi), %edi
835 0x67,0xf2,0x0f,0x38,0xf8,0x3f
837 # CHECK: enqcmds (%edi), %edi
838 0x67,0xf3,0x0f,0x38,0xf8,0x3f