• Home
  • Raw
  • Download

Lines Matching refs:AppendToBuffer

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