• Home
  • Raw
  • Download

Lines Matching refs:regop

362   static void get_modrm(byte data, int* mod, int* regop, int* rm) {  in get_modrm()  argument
364 *regop = (data & 0x38) >> 3; in get_modrm()
391 int MemoryFPUInstruction(int escape_opcode, int regop, byte* modrm_start);
418 int mod, regop, rm; in PrintRightOperandHelper() local
419 get_modrm(*modrmp, &mod, &regop, &rm); in PrintRightOperandHelper()
526 int mod, regop, rm; in PrintOperands() local
527 get_modrm(modrm, &mod, &regop, &rm); in PrintOperands()
531 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in PrintOperands()
538 AppendToBuffer(",%s", NameOfCPURegister(regop)); in PrintOperands()
554 int mod, regop, rm; in PrintImmediateOp() local
555 get_modrm(modrm, &mod, &regop, &rm); in PrintImmediateOp()
557 switch (regop) { in PrintImmediateOp()
583 int mod, regop, rm; in F7Instruction() local
584 get_modrm(modrm, &mod, &regop, &rm); in F7Instruction()
586 switch (regop) { in F7Instruction()
613 if (regop == 0) { in F7Instruction()
625 int mod, regop, rm; in D1D3C1Instruction() local
626 get_modrm(modrm, &mod, &regop, &rm); in D1D3C1Instruction()
629 switch (regop) { in D1D3C1Instruction()
736 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
737 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
741 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
746 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
751 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
756 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
761 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
766 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
771 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
776 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
781 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
786 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
791 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
796 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv)); in AVXInstruction()
800 AppendToBuffer("shlx %s,", NameOfCPURegister(regop)); in AVXInstruction()
808 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
809 get_modrm(*current, &mod, &regop, &rm); 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()
845 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
846 get_modrm(*current, &mod, &regop, &rm); 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()
882 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
883 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
887 AppendToBuffer("andn %s,%s,", NameOfCPURegister(regop), in AVXInstruction()
892 AppendToBuffer("bzhi %s,", NameOfCPURegister(regop)); in AVXInstruction()
897 AppendToBuffer("bextr %s,", NameOfCPURegister(regop)); in AVXInstruction()
902 switch (regop) { in AVXInstruction()
923 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
924 get_modrm(*current, &mod, &regop, &rm); 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()
945 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
946 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
949 AppendToBuffer("pext %s,%s,", NameOfCPURegister(regop), in AVXInstruction()
954 AppendToBuffer("sarx %s,", NameOfCPURegister(regop)); in AVXInstruction()
962 int mod, regop, rm; in AVXInstruction() local
963 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
966 AppendToBuffer("rorx %s,", NameOfCPURegister(regop)); in AVXInstruction()
975 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
976 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
979 AppendToBuffer("vandps %s,%s,", NameOfXMMRegister(regop), in AVXInstruction()
984 AppendToBuffer("vxorps %s,%s,", NameOfXMMRegister(regop), in AVXInstruction()
992 int mod, regop, rm, vvvv = vex_vreg(); in AVXInstruction() local
993 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
996 AppendToBuffer("vandpd %s,%s,", NameOfXMMRegister(regop), in AVXInstruction()
1001 AppendToBuffer("vxorpd %s,%s,", NameOfXMMRegister(regop), in AVXInstruction()
1033 int regop = (modrm_byte >> 3) & 0x7; // reg/op field of modrm byte. in MemoryFPUInstruction() local
1035 case 0xD9: switch (regop) { in MemoryFPUInstruction()
1044 case 0xDB: switch (regop) { in MemoryFPUInstruction()
1053 case 0xDD: switch (regop) { in MemoryFPUInstruction()
1062 case 0xDF: switch (regop) { in MemoryFPUInstruction()
1366 int mod, regop, rm; in InstructionDecode() local
1367 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1368 if (regop == eax) { in InstructionDecode()
1390 int mod, regop, rm; in InstructionDecode() local
1391 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1393 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]); in InstructionDecode()
1419 int mod, regop, rm; in InstructionDecode() local
1420 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1422 NameOfXMMRegister(regop), in InstructionDecode()
1429 int mod, regop, rm; in InstructionDecode() local
1430 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1434 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1436 AppendToBuffer("%s,", NameOfXMMRegister(regop)); in InstructionDecode()
1441 int mod, regop, rm; in InstructionDecode() local
1442 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1443 AppendToBuffer("ucomiss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1463 int mod, regop, rm; in InstructionDecode() local
1464 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1467 NameOfXMMRegister(regop)); in InstructionDecode()
1471 int mod, regop, rm; in InstructionDecode() local
1472 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1474 NameOfCPURegister(regop), in InstructionDecode()
1480 int mod, regop, rm; in InstructionDecode() local
1481 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1485 NameOfXMMRegister(regop), in InstructionDecode()
1502 int mod, regop, rm; in InstructionDecode() local
1503 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1507 NameOfCPURegister(regop), static_cast<int>(imm8)); in InstructionDecode()
1512 int mod, regop, rm; in InstructionDecode() local
1513 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1516 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1518 AppendToBuffer(",%s,cl", NameOfCPURegister(regop)); in InstructionDecode()
1524 int mod, regop, rm; in InstructionDecode() local
1525 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1527 AppendToBuffer(",%s", NameOfByteCPURegister(regop)); in InstructionDecode()
1534 int mod, regop, rm; in InstructionDecode() local
1535 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1536 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop)); in InstructionDecode()
1540 int mod, regop, rm; in InstructionDecode() local
1541 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1542 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop)); in InstructionDecode()
1552 int mod, regop, rm; in InstructionDecode() local
1553 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1554 if (regop == eax) { in InstructionDecode()
1563 int mod, regop, rm; in InstructionDecode() local
1564 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1566 switch (regop) { in InstructionDecode()
1601 int mod, regop, rm; in InstructionDecode() local
1602 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1604 switch (regop) { in InstructionDecode()
1620 int mod, regop, rm; in InstructionDecode() local
1622 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1626 AppendToBuffer(",%s", NameOfByteCPURegister(regop)); in InstructionDecode()
1630 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1654 int mod, regop, rm; in InstructionDecode() local
1655 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1656 AppendToBuffer("xchg_w %s,", NameOfCPURegister(regop)); in InstructionDecode()
1660 int mod, regop, rm; in InstructionDecode() local
1661 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1664 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1690 int mod, regop, rm; in InstructionDecode() local
1691 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1693 NameOfXMMRegister(regop), in InstructionDecode()
1706 int mod, regop, rm; in InstructionDecode() local
1707 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1709 AppendToBuffer("roundss %s,%s,%d", NameOfXMMRegister(regop), in InstructionDecode()
1714 int mod, regop, rm; in InstructionDecode() local
1715 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1718 NameOfXMMRegister(regop), in InstructionDecode()
1724 int mod, regop, rm; in InstructionDecode() local
1725 get_modrm(*data, &mod, &rm, &regop); in InstructionDecode()
1728 NameOfCPURegister(regop), in InstructionDecode()
1734 int mod, regop, rm; in InstructionDecode() local
1735 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1739 NameOfXMMRegister(regop), in InstructionDecode()
1744 int mod, regop, rm; in InstructionDecode() local
1745 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1748 NameOfXMMRegister(regop), in InstructionDecode()
1758 int mod, regop, rm; in InstructionDecode() local
1759 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1762 NameOfXMMRegister(regop), in InstructionDecode()
1766 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1771 int mod, regop, rm; in InstructionDecode() local
1772 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1774 NameOfCPURegister(regop), in InstructionDecode()
1779 int mod, regop, rm; in InstructionDecode() local
1780 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1782 NameOfXMMRegister(regop), in InstructionDecode()
1787 int mod, regop, rm; in InstructionDecode() local
1788 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1790 NameOfXMMRegister(regop), in InstructionDecode()
1795 int mod, regop, rm; in InstructionDecode() local
1796 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1798 NameOfXMMRegister(regop), in InstructionDecode()
1803 int mod, regop, rm; in InstructionDecode() local
1804 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1805 AppendToBuffer("movd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1809 int mod, regop, rm; in InstructionDecode() local
1810 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1811 AppendToBuffer("movdqa %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1815 int mod, regop, rm; in InstructionDecode() local
1816 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1819 NameOfXMMRegister(regop), in InstructionDecode()
1825 int mod, regop, rm; in InstructionDecode() local
1826 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1827 AppendToBuffer("punpckldq %s,%s", NameOfXMMRegister(regop), in InstructionDecode()
1832 int mod, regop, rm; in InstructionDecode() local
1833 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1834 AppendToBuffer("punpckhdq %s,%s", NameOfXMMRegister(regop), in InstructionDecode()
1839 int mod, regop, rm; in InstructionDecode() local
1840 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1842 NameOfXMMRegister(regop), in InstructionDecode()
1850 int mod, regop, rm; in InstructionDecode() local
1851 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1853 NameOfXMMRegister(regop), in InstructionDecode()
1858 int mod, regop, rm; in InstructionDecode() local
1859 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1861 DCHECK(regop == esi || regop == edx); in InstructionDecode()
1862 AppendToBuffer("%s %s,%d", (regop == esi) ? "pslld" : "psrld", in InstructionDecode()
1867 int mod, regop, rm; in InstructionDecode() local
1868 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1870 DCHECK(regop == esi || regop == edx); in InstructionDecode()
1872 (regop == esi) ? "psllq" : "psrlq", in InstructionDecode()
1878 int mod, regop, rm; in InstructionDecode() local
1879 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1881 NameOfXMMRegister(regop), in InstructionDecode()
1887 int mod, regop, rm; in InstructionDecode() local
1888 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1890 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1893 int mod, regop, rm; in InstructionDecode() local
1894 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1897 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1900 int mod, regop, rm; in InstructionDecode() local
1901 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1903 NameOfXMMRegister(regop), in InstructionDecode()
1908 int mod, regop, rm; in InstructionDecode() local
1909 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1918 int mod, regop, rm; in InstructionDecode() local
1919 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1921 NameOfXMMRegister(regop), in InstructionDecode()
1926 int mod, regop, rm; in InstructionDecode() local
1927 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1929 NameOfXMMRegister(regop), in InstructionDecode()
1945 int mod, regop, rm; in InstructionDecode() local
1946 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
1947 if (regop == ecx) { in InstructionDecode()
2003 int mod, regop, rm; in InstructionDecode() local
2004 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2006 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
2009 int mod, regop, rm; in InstructionDecode() local
2010 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2011 AppendToBuffer("movsd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
2015 int mod, regop, rm; in InstructionDecode() local
2016 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2017 AppendToBuffer("cvtsd2ss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
2054 int mod, regop, rm; in InstructionDecode() local
2055 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2057 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
2060 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in InstructionDecode()
2076 NameOfXMMRegister(regop), in InstructionDecode()
2080 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
2095 int mod, regop, rm; in InstructionDecode() local
2096 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2098 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
2101 int mod, regop, rm; in InstructionDecode() local
2102 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2103 AppendToBuffer("movss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
2107 int mod, regop, rm; in InstructionDecode() local
2108 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2109 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
2113 int mod, regop, rm; in InstructionDecode() local
2114 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2115 AppendToBuffer("movdqu %s,", NameOfXMMRegister(regop)); in InstructionDecode()
2120 int mod, regop, rm; in InstructionDecode() local
2121 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2123 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
2126 int mod, regop, rm; in InstructionDecode() local
2127 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2128 AppendToBuffer("popcnt %s,", NameOfCPURegister(regop)); in InstructionDecode()
2132 int mod, regop, rm; in InstructionDecode() local
2133 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2134 AppendToBuffer("tzcnt %s,", NameOfCPURegister(regop)); in InstructionDecode()
2138 int mod, regop, rm; in InstructionDecode() local
2139 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2140 AppendToBuffer("lzcnt %s,", NameOfCPURegister(regop)); in InstructionDecode()
2177 int mod, regop, rm; in InstructionDecode() local
2178 get_modrm(*data, &mod, &regop, &rm); in InstructionDecode()
2180 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
2183 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in InstructionDecode()
2191 NameOfXMMRegister(regop), NameOfXMMRegister(rm)); in InstructionDecode()
2194 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()