x86-16.txt 10.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847
# RUN: llvm-mc --disassemble %s -triple=i686-linux-gnu-code16 | FileCheck %s

# CHECK: movl $305419896, %ebx
0x66 0xbb 0x78 0x56 0x34 0x12

# CHECK: pause
0xf3 0x90

# CHECK: sfence
0x0f 0xae 0xf8

# CHECK: lfence
0x0f 0xae 0xe8

# CHECK: mfence
0x0f 0xae 0xf0

# CHECK: stgi
0x0f 0x01 0xdc

# CHECK: clgi
0x0f 0x01 0xdd

# CHECK: rdtscp
0x0f 0x01 0xf9

# CHECK: movl %eax, 16(%ebp)
0x67 0x66 0x89 0x45 0x10

# CHECK: movl %eax, -16(%ebp)
0x67 0x66 0x89 0x45 0xf0

# CHECK: testb %cl, %bl
0x84 0xcb

# CHECK: cmpl %eax, %ebx
0x66 0x39 0xc3

# CHECK: addw %ax, %ax
0x01 0xc0

# CHECK: shrl %eax
0x66 0xd1 0xe8

# CHECK: shll %eax
0x66 0xd1 0xe0

# CHECK: shll %eax
0x66 0xd1 0xe0

# CHECK: movb 0, %al
0xa0 0x00 0x00

# CHECK: movw 0, %ax
0xa1 0x00 0x00

# CHECK: movl 0, %eax
0x66 0xa1 0x00 0x00

# CHECK: into
0xce

# CHECK: int3
0xcc

# CHECK: int $4
0xcd 0x04

# CHECK: int $127
0xcd 0x7f

# CHECK: pushfw
0x9c

# CHECK: pushfl
0x66 0x9c

# CHECK: popfw
0x9d

# CHECK: popfl
0x66 0x9d

# CHECK: retl
0x66 0xc3

# CHECK: cmoval %eax, %edx
0x66 0x0f 0x47 0xd0

# CHECK: cmovael %eax, %edx
0x66 0x0f 0x43 0xd0

# CHECK: cmovbel %eax, %edx
0x66 0x0f 0x46 0xd0

# CHECK: cmovbl %eax, %edx
0x66 0x0f 0x42 0xd0

# CHECK: cmovbw %bx, %bx
0x0f 0x42 0xdb

# CHECK: cmovbel %eax, %edx
0x66 0x0f 0x46 0xd0

# CHECK: cmovbl %eax, %edx
0x66 0x0f 0x42 0xd0

# CHECK: cmovel %eax, %edx
0x66 0x0f 0x44 0xd0

# CHECK: cmovgl %eax, %edx
0x66 0x0f 0x4f 0xd0

# CHECK: cmovgel %eax, %edx
0x66 0x0f 0x4d 0xd0

# CHECK: cmovll %eax, %edx
0x66 0x0f 0x4c 0xd0

# CHECK: cmovlel %eax, %edx
0x66 0x0f 0x4e 0xd0

# CHECK: cmovbel %eax, %edx
0x66 0x0f 0x46 0xd0

# CHECK: cmovnel %eax, %edx
0x66 0x0f 0x45 0xd0

# CHECK: cmovael %eax, %edx
0x66 0x0f 0x43 0xd0

# CHECK: cmoval %eax, %edx
0x66 0x0f 0x47 0xd0

# CHECK: cmovael %eax, %edx
0x66 0x0f 0x43 0xd0

# CHECK: cmovnel %eax, %edx
0x66 0x0f 0x45 0xd0

# CHECK: cmovlel %eax, %edx
0x66 0x0f 0x4e 0xd0

# CHECK: cmovgel %eax, %edx
0x66 0x0f 0x4d 0xd0

# CHECK: cmovnel %eax, %edx
0x66 0x0f 0x45 0xd0

# CHECK: cmovlel %eax, %edx
0x66 0x0f 0x4e 0xd0

# CHECK: cmovll %eax, %edx
0x66 0x0f 0x4c 0xd0

# CHECK: cmovgel %eax, %edx
0x66 0x0f 0x4d 0xd0

# CHECK: cmovgl %eax, %edx
0x66 0x0f 0x4f 0xd0

# CHECK: cmovnol %eax, %edx
0x66 0x0f 0x41 0xd0

# CHECK: cmovnpl %eax, %edx
0x66 0x0f 0x4b 0xd0

# CHECK: cmovnsl %eax, %edx
0x66 0x0f 0x49 0xd0

# CHECK: cmovnel %eax, %edx
0x66 0x0f 0x45 0xd0

# CHECK: cmovol %eax, %edx
0x66 0x0f 0x40 0xd0

# CHECK: cmovpl %eax, %edx
0x66 0x0f 0x4a 0xd0

# CHECK: cmovsl %eax, %edx
0x66 0x0f 0x48 0xd0

# CHECK: cmovel %eax, %edx
0x66 0x0f 0x44 0xd0

# CHECK: fmul %st(0)
0xd8 0xc8

# CHECK: fadd %st(0)
0xd8 0xc0

# CHECK: fsub %st(0)
0xd8 0xe0

# CHECK: fsubr %st(0)
0xd8 0xe8

# CHECK: fdivr %st(0)
0xd8 0xf8

# CHECK: fdiv %st(0)
0xd8 0xf0

# CHECK: movl %cs, %eax
0x66 0x8c 0xc8

# CHECK: movw %cs, %ax
0x8c 0xc8

# CHECK: movw %cs, (%eax)
0x67 0x66 0x8c 0x08

# CHECK: movw %cs, (%eax)
0x67 0x8c 0x08

# CHECK: movl %eax, %cs
0x66 0x8e 0xc8

# CHECK: movw (%eax), %cs
0x67 0x66 0x8e 0x08

# CHECK: movw (%eax), %cs
0x67 0x8e 0x08

# CHECKX: movl %cr0, %eax
0x0f 0x20 0xc0

# CHECKX: movl %cr1, %eax
0x0f 0x20 0xc8

# CHECKX: movl %cr2, %eax
0x0f 0x20 0xd0

# CHECKX: movl %cr3, %eax
0x0f 0x20 0xd8

# CHECKX: movl %cr4, %eax
0x0f 0x20 0xe0

# CHECKX: movl %dr0, %eax
0x0f 0x21 0xc0

# CHECKX: movl %dr1, %eax
0x0f 0x21 0xc8

# CHECKX: movl %dr1, %eax
0x0f 0x21 0xc8

# CHECKX: movl %dr2, %eax
0x0f 0x21 0xd0

# CHECKX: movl %dr3, %eax
0x0f 0x21 0xd8

# CHECKX: movl %dr4, %eax
0x0f 0x21 0xe0

# CHECKX: movl %dr5, %eax
0x0f 0x21 0xe8

# CHECKX: movl %dr6, %eax
0x0f 0x21 0xf0

# CHECKX: movl %dr7, %eax
0x0f 0x21 0xf8

# CHECK: wait
0x9b

# CHECK: movl %gs:124, %eax
0x65 0x66 0x8b 0x06 0x7c 0x00

# CHECK: pushaw
0x60

# CHECK: popaw
0x61

# CHECK: pushaw
0x60

# CHECK: popaw
0x61

# CHECK: pushal
0x66 0x60

# CHECK: popal
0x66 0x61

# CHECK: jmpw *8(%eax)
0x67 0xff 0x60 0x08

# CHECK: jmpl *8(%eax)
0x67 0x66 0xff 0x60 0x08

# CHECK: lcalll $2, $4660
0x66 0x9a 0x34 0x12 0x00 0x00 0x02 0x00

# CHECK: jcxz
0xe3 0x00

# CHECK: jecxz
0x67 0xe3 0x00

# CHECK: iretw
0xcf

# CHECK: iretw
0xcf

# CHECK: iretl
0x66 0xcf

# CHECK: sysretl
0x0f 0x07

# CHECK: sysretl
0x0f 0x07

# CHECK: testl %ecx, -24(%ebp)
0x67 0x66 0x85 0x4d 0xe8

# CHECK: testl %ecx, -24(%ebp)
0x67 0x66 0x85 0x4d 0xe8

# CHECK: pushw %cs
0x0e

# CHECK: pushw %ds
0x1e

# CHECK: pushw %ss
0x16

# CHECK: pushw %es
0x06

# CHECK: pushw %fs
0x0f 0xa0

# CHECK: pushw %gs
0x0f 0xa8

# CHECK: pushw %cs
0x0e

# CHECK: pushw %ds
0x1e

# CHECK: pushw %ss
0x16

# CHECK: pushw %es
0x06

# CHECK: pushw %fs
0x0f 0xa0

# CHECK: pushw %gs
0x0f 0xa8

# CHECK: pushl %cs
0x66 0x0e

# CHECK: pushl %ds
0x66 0x1e

# CHECK: pushl %ss
0x66 0x16

# CHECK: pushl %es
0x66 0x06

# CHECK: pushl %fs
0x66 0x0f 0xa0

# CHECK: pushl %gs
0x66 0x0f 0xa8

# CHECK: popw %ss
0x17

# CHECK: popw %ds
0x1f

# CHECK: popw %es
0x07

# CHECK: popl %ss
0x66 0x17

# CHECK: popl %ds
0x66 0x1f

# CHECK: popl %es
0x66 0x07

# CHECK: pushfl
0x66 0x9c

# CHECK: popfl
0x66 0x9d

# CHECK: pushfl
0x66 0x9c

# CHECK: popfl
0x66 0x9d

# CHECK: salc
0xd6

# CHECK: setb %bl
0x0f 0x92 0xc3

# CHECK: setb %bl
0x0f 0x92 0xc3

# CHECK: setae %bl
0x0f 0x93 0xc3

# CHECK: setae %bl
0x0f 0x93 0xc3

# CHECK: setbe %bl
0x0f 0x96 0xc3

# CHECK: seta %bl
0x0f 0x97 0xc3

# CHECK: setp %bl
0x0f 0x9a 0xc3

# CHECK: setnp %bl
0x0f 0x9b 0xc3

# CHECK: setl %bl
0x0f 0x9c 0xc3

# CHECK: setge %bl
0x0f 0x9d 0xc3

# CHECK: setle %bl
0x0f 0x9e 0xc3

# CHECK: setg %bl
0x0f 0x9f 0xc3

# CHECK: setne %cl
0x0f 0x95 0xc1

# CHECK: setb %bl
0x0f 0x92 0xc3

# CHECK: setb %bl
0x0f 0x92 0xc3

# CHECK: lcalll $31438, $31438
0x66 0x9a 0xce 0x7a 0x00 0x00 0xce 0x7a

# CHECK: lcalll $31438, $31438
0x66 0x9a 0xce 0x7a 0x00 0x00 0xce 0x7a

# CHECK: ljmpl $31438, $31438
0x66 0xea 0xce 0x7a 0x00 0x00 0xce 0x7a

# CHECK: ljmpl $31438, $31438
0x66 0xea 0xce 0x7a 0x00 0x00 0xce 0x7a

# CHECK: lcallw $31438, $31438
0x9a 0xce 0x7a 0xce 0x7a

# CHECK: lcallw $31438, $31438
0x9a 0xce 0x7a 0xce 0x7a

# CHECK: ljmpw $31438, $31438
0xea 0xce 0x7a 0xce 0x7a

# CHECK: ljmpw $31438, $31438
0xea 0xce 0x7a 0xce 0x7a

# CHECK: lcallw $31438, $31438
0x9a 0xce 0x7a 0xce 0x7a

# CHECK: lcallw $31438, $31438
0x9a 0xce 0x7a 0xce 0x7a

# CHECK: ljmpw $31438, $31438
0xea 0xce 0x7a 0xce 0x7a

# CHECK: ljmpw $31438, $31438
0xea 0xce 0x7a 0xce 0x7a

# CHECK: calll 
0x66 0xe8 0x00 0x00 0x00 0x00

# CHECK: callw
0xe8 0x00 0x00

# CHECK: incb %al
0xfe 0xc0

# CHECK: incw %ax
0x40

# CHECK: incl %eax
0x66 0x40

# CHECK: decb %al
0xfe 0xc8

# CHECK: decw %ax
0x48

# CHECK: decl %eax
0x66 0x48

# CHECK: pshufw $14, %mm4, %mm0
0x0f 0x70 0xc4 0x0e

# CHECK: pshufw $90, %mm4, %mm0
0x0f 0x70 0xc4 0x5a

# CHECK: aaa
0x37

# CHECK: aad $1
0xd5 0x01

# CHECK: aad
0xd5 0x0a

# CHECK: aad
0xd5 0x0a

# CHECK: aam $2
0xd4 0x02

# CHECK: aam
0xd4 0x0a

# CHECK: aam
0xd4 0x0a

# CHECK: aas
0x3f

# CHECK: daa
0x27

# CHECK: das
0x2f

# CHECK: retw $31438
0xc2 0xce 0x7a

# CHECK: lretw $31438
0xca 0xce 0x7a

# CHECK: retw $31438
0xc2 0xce 0x7a

# CHECK: lretw $31438
0xca 0xce 0x7a

# CHECK: retl $31438
0x66 0xc2 0xce 0x7a

# CHECK: lretl $31438
0x66 0xca 0xce 0x7a

# CHECK: bound %bx, 2(%eax)
0x67 0x62 0x58 0x02

# CHECK: bound %ecx, 4(%ebx)
0x67 0x66 0x62 0x4b 0x04

# CHECK: arpl %bx, %bx
0x63 0xdb

# CHECK: arpl %bx, 6(%ecx)
0x67 0x63 0x59 0x06

# CHECK: lgdtw 4(%eax)
0x67 0x0f 0x01 0x50 0x04

# CHECK: lgdtw 4(%eax)
0x67 0x0f 0x01 0x50 0x04

# CHECK: lgdtl 4(%eax)
0x67 0x66 0x0f 0x01 0x50 0x04

# CHECK: lidtw 4(%eax)
0x67 0x0f 0x01 0x58 0x04

# CHECK: lidtw 4(%eax)
0x67 0x0f 0x01 0x58 0x04

# CHECK: lidtl 4(%eax)
0x67 0x66 0x0f 0x01 0x58 0x04

# CHECK: sgdtw 4(%eax)
0x67 0x0f 0x01 0x40 0x04

# CHECK: sgdtw 4(%eax)
0x67 0x0f 0x01 0x40 0x04

# CHECK: sgdtl 4(%eax)
0x67 0x66 0x0f 0x01 0x40 0x04

# CHECK: sidtw 4(%eax)
0x67 0x0f 0x01 0x48 0x04

# CHECK: sidtw 4(%eax)
0x67 0x0f 0x01 0x48 0x04

# CHECK: sidtl 4(%eax)
0x67 0x66 0x0f 0x01 0x48 0x04

# CHECK: fcompi %st(2)
0xdf 0xf2

# CHECK: fcompi %st(2)
0xdf 0xf2

# CHECK: fcompi %st(1)
0xdf 0xf1

# CHECK: fucompi %st(2)
0xdf 0xea

# CHECK: fucompi %st(2)
0xdf 0xea

# CHECK: fucompi %st(1)
0xdf 0xe9

# CHECK: fldcw 32493
0xd9 0x2e 0xed 0x7e

# CHECK: fldcw 32493
0xd9 0x2e 0xed 0x7e

# CHECK: fnstcw 32493
0xd9 0x3e 0xed 0x7e

# CHECK: fnstcw 32493
0xd9 0x3e 0xed 0x7e

# CHECK: wait
0x9b

# CHECK: fnstcw 32493
0xd9 0x3e 0xed 0x7e

# CHECK: wait
0x9b

# CHECK: fnstcw 32493
0xd9 0x3e 0xed 0x7e

# CHECK: fnstsw 32493
0xdd 0x3e 0xed 0x7e

# CHECK: fnstsw 32493
0xdd 0x3e 0xed 0x7e

# CHECK: wait
0x9b

# CHECK: fnstsw 32493
0xdd 0x3e 0xed 0x7e

# CHECK: wait
0x9b

# CHECK: fnstsw 32493
0xdd 0x3e 0xed 0x7e

# CHECK: verr 32493
0x0f 0x00 0x26 0xed 0x7e

# CHECK: verr 32493
0x0f 0x00 0x26 0xed 0x7e

# CHECK: wait
0x9b

# CHECK: fnclex
0xdb 0xe2

# CHECK: fnclex
0xdb 0xe2

# CHECK: ud2
0x0f 0x0b

# CHECK: ud2
0x0f 0x0b

# CHECK: ud1w %ax, %ax
0x0f 0xb9 0xc0

# CHECK: loope
0xe1 0x00

# CHECK: loopne
0xe0 0x00

# CHECK: outsb
0x6e

# CHECK: outsw
0x6f

# CHECK: outsl
0x66 0x6f

# CHECK: insb
0x6c

# CHECK: insw
0x6d

# CHECK: insl
0x66 0x6d

# CHECK: movsb
0xa4

# CHECK: movsw
0xa5

# CHECK: movsl
0x66 0xa5

# CHECK: lodsb
0xac

# CHECK: lodsw
0xad

# CHECK: lodsl
0x66 0xad

# CHECK: stosb
0xaa

# CHECK: stosw
0xab

# CHECK: stosl
0x66 0xab

# CHECK: strw %ax
0x0f 0x00 0xc8

# CHECK: strl %eax
0x66 0x0f 0x00 0xc8

# CHECK: fsubp %st, %st(1)
0xde 0xe1

# CHECK: fsubp %st, %st(2)
0xde 0xe2

# CHECKX: nop
0x66 0x90

# CHECKX: nop
0x90

# CHECK: xchgl %ecx, %eax
0x66 0x91

# CHECK: xchgl %ecx, %eax
0x66 0x91

# CHECK: retw
0xc3

# CHECK: retl
0x66 0xc3

# CHECK: lretw
0xcb

# CHECK: lretl
0x66 0xcb

# CHECK: callw	-1
0xe8 0xff 0xff

# CHECK: wbnoinvd
0xf3 0x0f 0x09

# CHECK: umonitor %ax
0xf3 0x0f 0xae 0xf0

# CHECK: umonitor %eax
0x67 0xf3 0x0f 0xae 0xf0

#CHECK: movdir64b (%esi), %eax
0x67 0x66 0x0f 0x38 0xf8 0x06

#CHECK: movdir64b (%si), %ax
0x66 0x0f 0x38 0xf8 0x04

# CHECK: enqcmd (%bx), %di
0xf2,0x0f,0x38,0xf8,0x3f

# CHECK: enqcmd 8128(%si), %ax
0xf2,0x0f,0x38,0xf8,0x84,0xc0,0x1f

# CHECK: enqcmd -8192(%di), %bx
0xf2,0x0f,0x38,0xf8,0x9d,0x00,0xe0

# CHECK: enqcmd 7408, %cx
0xf2,0x0f,0x38,0xf8,0x0e,0xf0,0x1c

# CHECK: enqcmds (%bx), %di
0xf3,0x0f,0x38,0xf8,0x3f

# CHECK: enqcmds 8128(%si), %ax
0xf3,0x0f,0x38,0xf8,0x84,0xc0,0x1f

# CHECK: enqcmds -8192(%di), %bx
0xf3,0x0f,0x38,0xf8,0x9d,0x00,0xe0

# CHECK: enqcmds 7408, %cx
0xf3,0x0f,0x38,0xf8,0x0e,0xf0,0x1c

# CHECK: enqcmd (%edi), %edi
0x67,0xf2,0x0f,0x38,0xf8,0x3f

# CHECK: enqcmds (%edi), %edi
0x67,0xf3,0x0f,0x38,0xf8,0x3f

# CHECK: serialize
0x0f 0x01 0xe8

# CHECK: xsusldtrk
0xf2 0x0f 0x01 0xe8

# CHECK: xresldtrk
0xf2 0x0f 0x01 0xe9