Lines Matching refs:AppendToBuffer
394 PRINTF_FORMAT(2, 3) void AppendToBuffer(const char* format, ...);
400 AppendToBuffer("'Unimplemented Instruction'");
406 void DisassemblerIA32::AppendToBuffer(const char* format, ...) {
426 AppendToBuffer("[0x%x]", disp);
433 AppendToBuffer("[%s]", (this->*register_name)(rm));
437 AppendToBuffer("[%s*%d%s0x%x]",
445 AppendToBuffer("[%s+%s*%d]",
455 AppendToBuffer("[%s]", (this->*register_name)(rm));
468 AppendToBuffer("[%s%s0x%x]",
473 AppendToBuffer("[%s+%s*%d%s0x%x]",
485 AppendToBuffer("[%s%s0x%x]",
493 AppendToBuffer("%s", (this->*register_name)(rm));
531 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
536 AppendToBuffer("%s ", mnem);
538 AppendToBuffer(",%s", NameOfCPURegister(regop));
567 AppendToBuffer("%s ", mnem);
570 AppendToBuffer(",0x%x", *(data + 1 + count));
573 AppendToBuffer(",0x%x", *reinterpret_cast<int32_t*>(data + 1 + count));
611 AppendToBuffer("%s ", mnem);
614 AppendToBuffer(",0x%x", *reinterpret_cast<int32_t*>(data + count));
654 AppendToBuffer("%s ", mnem);
665 AppendToBuffer(",%d", imm8);
667 AppendToBuffer(",cl");
678 AppendToBuffer("jmp %s", NameOfAddress(dest));
689 AppendToBuffer("%s %s", mnem, NameOfAddress(dest));
691 AppendToBuffer(", %s", comment);
703 AppendToBuffer("%s %s", mnem, NameOfAddress(dest));
705 AppendToBuffer(", %s", comment);
716 AppendToBuffer("%s ", mnem);
740 AppendToBuffer("vfmadd132s%c %s,%s,", float_size_code(),
745 AppendToBuffer("vfmadd213s%c %s,%s,", float_size_code(),
750 AppendToBuffer("vfmadd231s%c %s,%s,", float_size_code(),
755 AppendToBuffer("vfmsub132s%c %s,%s,", float_size_code(),
760 AppendToBuffer("vfmsub213s%c %s,%s,", float_size_code(),
765 AppendToBuffer("vfmsub231s%c %s,%s,", float_size_code(),
770 AppendToBuffer("vfnmadd132s%c %s,%s,", float_size_code(),
775 AppendToBuffer("vfnmadd213s%c %s,%s,", float_size_code(),
780 AppendToBuffer("vfnmadd231s%c %s,%s,", float_size_code(),
785 AppendToBuffer("vfnmsub132s%c %s,%s,", float_size_code(),
790 AppendToBuffer("vfnmsub213s%c %s,%s,", float_size_code(),
795 AppendToBuffer("vfnmsub231s%c %s,%s,", float_size_code(),
800 AppendToBuffer("shlx %s,", NameOfCPURegister(regop));
802 AppendToBuffer(",%s", NameOfCPURegister(vvvv));
812 AppendToBuffer("vaddsd %s,%s,", NameOfXMMRegister(regop),
817 AppendToBuffer("vmulsd %s,%s,", NameOfXMMRegister(regop),
822 AppendToBuffer("vsubsd %s,%s,", NameOfXMMRegister(regop),
827 AppendToBuffer("vminsd %s,%s,", NameOfXMMRegister(regop),
832 AppendToBuffer("vdivsd %s,%s,", NameOfXMMRegister(regop),
837 AppendToBuffer("vmaxsd %s,%s,", NameOfXMMRegister(regop),
849 AppendToBuffer("vaddss %s,%s,", NameOfXMMRegister(regop),
854 AppendToBuffer("vmulss %s,%s,", NameOfXMMRegister(regop),
859 AppendToBuffer("vsubss %s,%s,", NameOfXMMRegister(regop),
864 AppendToBuffer("vminss %s,%s,", NameOfXMMRegister(regop),
869 AppendToBuffer("vdivss %s,%s,", NameOfXMMRegister(regop),
874 AppendToBuffer("vmaxss %s,%s,", NameOfXMMRegister(regop),
887 AppendToBuffer("andn %s,%s,", NameOfCPURegister(regop),
892 AppendToBuffer("bzhi %s,", NameOfCPURegister(regop));
894 AppendToBuffer(",%s", NameOfCPURegister(vvvv));
897 AppendToBuffer("bextr %s,", NameOfCPURegister(regop));
899 AppendToBuffer(",%s", NameOfCPURegister(vvvv));
915 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(vvvv));
927 AppendToBuffer("pdep %s,%s,", NameOfCPURegister(regop),
932 AppendToBuffer("mulx %s,%s,", NameOfCPURegister(regop),
937 AppendToBuffer("shrx %s,", NameOfCPURegister(regop));
939 AppendToBuffer(",%s", NameOfCPURegister(vvvv));
949 AppendToBuffer("pext %s,%s,", NameOfCPURegister(regop),
954 AppendToBuffer("sarx %s,", NameOfCPURegister(regop));
956 AppendToBuffer(",%s", NameOfCPURegister(vvvv));
966 AppendToBuffer("rorx %s,", NameOfCPURegister(regop));
968 AppendToBuffer(",%d", *current & 0x1f);
979 AppendToBuffer("vandps %s,%s,", NameOfXMMRegister(regop),
984 AppendToBuffer("vxorps %s,%s,", NameOfXMMRegister(regop),
996 AppendToBuffer("vandpd %s,%s,", NameOfXMMRegister(regop),
1001 AppendToBuffer("vxorpd %s,%s,", NameOfXMMRegister(regop),
1071 AppendToBuffer("%s ", mnem);
1197 AppendToBuffer("%s st%d", mnem, modrm_byte & 0x7);
1199 AppendToBuffer("%s", mnem);
1272 AppendToBuffer("lock ");
1285 AppendToBuffer("%s", idesc.mnem);
1299 AppendToBuffer("%s %s", idesc.mnem, NameOfCPURegister(*data & 0x07));
1306 AppendToBuffer("mov %s,%s", NameOfCPURegister(*data & 0x07),
1314 AppendToBuffer("%s %s", idesc.mnem, NameOfAddress(addr));
1322 AppendToBuffer("%s eax,%s", idesc.mnem, NameOfAddress(addr));
1328 AppendToBuffer("%s al,0x%x", idesc.mnem, data[1]);
1345 AppendToBuffer("ret 0x%x", *reinterpret_cast<uint16_t*>(data+1));
1352 AppendToBuffer(",%d", *data);
1359 AppendToBuffer(",%d", *reinterpret_cast<int32_t*>(data));
1369 AppendToBuffer("test_b ");
1372 AppendToBuffer(",0x%x", imm);
1393 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]);
1396 AppendToBuffer("nop"); // 3 byte nop.
1399 AppendToBuffer("nop"); // 4 byte nop.
1403 AppendToBuffer("nop"); // 5 byte nop.
1407 AppendToBuffer("nop"); // 7 byte nop.
1412 AppendToBuffer("nop"); // 8 byte nop.
1415 AppendToBuffer("%s", f0mnem);
1421 AppendToBuffer("movaps %s,%s",
1431 AppendToBuffer("movups ");
1434 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1436 AppendToBuffer("%s,", NameOfXMMRegister(regop));
1443 AppendToBuffer("ucomiss %s,", NameOfXMMRegister(regop));
1465 AppendToBuffer("%s %s,",
1473 AppendToBuffer("movmskps %s,%s",
1483 AppendToBuffer("shufps %s,%s,%d",
1501 AppendToBuffer("%s ", f0mnem);
1506 AppendToBuffer("%s,%s,%d", NameOfCPURegister(rm),
1511 AppendToBuffer("%s ", f0mnem);
1516 AppendToBuffer(",%s", NameOfCPURegister(regop));
1518 AppendToBuffer(",%s,cl", NameOfCPURegister(regop));
1523 AppendToBuffer("%s ", f0mnem);
1527 AppendToBuffer(",%s", NameOfByteCPURegister(regop));
1536 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop));
1542 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop));
1555 AppendToBuffer("pop ");
1574 AppendToBuffer("%s ", mnem);
1584 AppendToBuffer("%s ", "mov_b");
1587 AppendToBuffer(",0x%x", imm);
1590 AppendToBuffer("%s ", "mov");
1593 AppendToBuffer(",0x%x", imm);
1609 AppendToBuffer("%s ", mnem);
1612 AppendToBuffer(",0x%x", imm);
1624 AppendToBuffer("%s ", "mov_b");
1626 AppendToBuffer(",%s", NameOfByteCPURegister(regop));
1628 AppendToBuffer("%s ", "mov");
1630 AppendToBuffer(",%s", NameOfCPURegister(regop));
1638 AppendToBuffer("nop"); // 0x66 prefix
1647 AppendToBuffer("cmpw ");
1650 AppendToBuffer(",0x%x", imm);
1656 AppendToBuffer("xchg_w %s,", NameOfCPURegister(regop));
1662 AppendToBuffer("mov_w ");
1664 AppendToBuffer(",%s", NameOfCPURegister(regop));
1669 AppendToBuffer("nop"); // 0x66 prefix
1672 AppendToBuffer("%s ", "mov_w");
1675 AppendToBuffer(",0x%x", imm);
1679 AppendToBuffer("%s ", "test_w");
1682 AppendToBuffer(",0x%x", imm);
1692 AppendToBuffer("ptest %s,%s",
1709 AppendToBuffer("roundss %s,%s,%d", NameOfXMMRegister(regop),
1717 AppendToBuffer("roundsd %s,%s,%d",
1727 AppendToBuffer("pextrd %s,%s,%d",
1737 AppendToBuffer("extractps %s,%s,%d",
1747 AppendToBuffer("pinsrd %s,%s,%d",
1761 AppendToBuffer("%s %s,%s", mnem,
1766 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
1773 AppendToBuffer("movmskpd %s,%s",
1781 AppendToBuffer("andpd %s,%s",
1789 AppendToBuffer("orpd %s,%s",
1797 AppendToBuffer("xorpd %s,%s",
1805 AppendToBuffer("movd %s,", NameOfXMMRegister(regop));
1811 AppendToBuffer("movdqa %s,", NameOfXMMRegister(regop));
1818 AppendToBuffer("pshufd %s,%s,%d",
1827 AppendToBuffer("punpckldq %s,%s", NameOfXMMRegister(regop),
1834 AppendToBuffer("punpckhdq %s,%s", NameOfXMMRegister(regop),
1841 AppendToBuffer("pcmpeqd %s,%s",
1847 AppendToBuffer("nop"); // 2 byte nop.
1852 AppendToBuffer("psllq %s,%s",
1862 AppendToBuffer("%s %s,%d", (regop == esi) ? "pslld" : "psrld",
1871 AppendToBuffer("%s %s,%d",
1880 AppendToBuffer("psrlq %s,%s",
1885 AppendToBuffer("movdqa ");
1890 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1895 AppendToBuffer("movd ");
1897 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1902 AppendToBuffer("pand %s,%s",
1920 AppendToBuffer("pxor %s,%s",
1928 AppendToBuffer("por %s,%s",
1948 AppendToBuffer("dec_b ");
1957 AppendToBuffer("push 0x%x", *reinterpret_cast<int32_t*>(data+1));
1962 AppendToBuffer("push 0x%x", *reinterpret_cast<int8_t*>(data + 1));
1967 AppendToBuffer("test al,0x%x", *reinterpret_cast<uint8_t*>(data+1));
1972 AppendToBuffer("test eax,0x%x", *reinterpret_cast<int32_t*>(data+1));
2001 AppendToBuffer("movsd ");
2006 AppendToBuffer(",%s", NameOfXMMRegister(regop));
2011 AppendToBuffer("movsd %s,", NameOfXMMRegister(regop));
2017 AppendToBuffer("cvtsd2ss %s,", NameOfXMMRegister(regop));
2057 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2060 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
2074 AppendToBuffer("%s %s,%s",
2080 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2093 AppendToBuffer("movss ");
2098 AppendToBuffer(",%s", NameOfXMMRegister(regop));
2103 AppendToBuffer("movss %s,", NameOfXMMRegister(regop));
2109 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop));
2115 AppendToBuffer("movdqu %s,", NameOfXMMRegister(regop));
2118 AppendToBuffer("movdqu ");
2123 AppendToBuffer(",%s", NameOfXMMRegister(regop));
2128 AppendToBuffer("popcnt %s,", NameOfCPURegister(regop));
2134 AppendToBuffer("tzcnt %s,", NameOfCPURegister(regop));
2140 AppendToBuffer("lzcnt %s,", NameOfCPURegister(regop));
2180 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2183 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
2190 AppendToBuffer("%s %s,%s", pseudo_op[data[1]],
2194 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2200 AppendToBuffer("rep_movs");
2203 AppendToBuffer("rep_stos");