Lines Matching refs:regop

373   static void get_modrm(byte data, int* mod, int* regop, int* rm) {
375 *regop = (data & 0x38) >> 3;
402 int MemoryFPUInstruction(int escape_opcode, int regop, byte* modrm_start);
430 int mod, regop, rm;
431 get_modrm(*modrmp, &mod, &regop, &rm);
538 int mod, regop, rm;
539 get_modrm(modrm, &mod, &regop, &rm);
543 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
550 AppendToBuffer(",%s", NameOfCPURegister(regop));
566 int mod, regop, rm;
567 get_modrm(modrm, &mod, &regop, &rm);
569 switch (regop) {
595 int mod, regop, rm;
596 get_modrm(modrm, &mod, &regop, &rm);
598 switch (regop) {
625 if (regop == 0) {
637 int mod, regop, rm;
638 get_modrm(modrm, &mod, &regop, &rm);
641 switch (regop) {
748 int mod, regop, rm, vvvv = vex_vreg();
749 get_modrm(*current, &mod, &regop, &rm);
753 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
758 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
763 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
768 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
773 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
778 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
783 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
788 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
793 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
798 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
803 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
808 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
812 AppendToBuffer("shlx %s,", NameOfCPURegister(regop));
820 int mod, regop, rm, vvvv = vex_vreg();
821 get_modrm(*current, &mod, &regop, &rm);
824 AppendToBuffer("vaddsd %s,%s,", NameOfXMMRegister(regop),
829 AppendToBuffer("vmulsd %s,%s,", NameOfXMMRegister(regop),
834 AppendToBuffer("vsubsd %s,%s,", NameOfXMMRegister(regop),
839 AppendToBuffer("vminsd %s,%s,", NameOfXMMRegister(regop),
844 AppendToBuffer("vdivsd %s,%s,", NameOfXMMRegister(regop),
849 AppendToBuffer("vmaxsd %s,%s,", NameOfXMMRegister(regop),
857 int mod, regop, rm, vvvv = vex_vreg();
858 get_modrm(*current, &mod, &regop, &rm);
861 AppendToBuffer("vaddss %s,%s,", NameOfXMMRegister(regop),
866 AppendToBuffer("vmulss %s,%s,", NameOfXMMRegister(regop),
871 AppendToBuffer("vsubss %s,%s,", NameOfXMMRegister(regop),
876 AppendToBuffer("vminss %s,%s,", NameOfXMMRegister(regop),
881 AppendToBuffer("vdivss %s,%s,", NameOfXMMRegister(regop),
886 AppendToBuffer("vmaxss %s,%s,", NameOfXMMRegister(regop),
894 int mod, regop, rm, vvvv = vex_vreg();
895 get_modrm(*current, &mod, &regop, &rm);
899 AppendToBuffer("andn %s,%s,", NameOfCPURegister(regop),
904 AppendToBuffer("bzhi %s,", NameOfCPURegister(regop));
909 AppendToBuffer("bextr %s,", NameOfCPURegister(regop));
914 switch (regop) {
935 int mod, regop, rm, vvvv = vex_vreg();
936 get_modrm(*current, &mod, &regop, &rm);
939 AppendToBuffer("pdep %s,%s,", NameOfCPURegister(regop),
944 AppendToBuffer("mulx %s,%s,", NameOfCPURegister(regop),
949 AppendToBuffer("shrx %s,", NameOfCPURegister(regop));
957 int mod, regop, rm, vvvv = vex_vreg();
958 get_modrm(*current, &mod, &regop, &rm);
961 AppendToBuffer("pext %s,%s,", NameOfCPURegister(regop),
966 AppendToBuffer("sarx %s,", NameOfCPURegister(regop));
974 int mod, regop, rm;
975 get_modrm(*current, &mod, &regop, &rm);
978 AppendToBuffer("rorx %s,", NameOfCPURegister(regop));
987 int mod, regop, rm, vvvv = vex_vreg();
988 get_modrm(*current, &mod, &regop, &rm);
991 AppendToBuffer("vandps %s,%s,", NameOfXMMRegister(regop),
996 AppendToBuffer("vxorps %s,%s,", NameOfXMMRegister(regop),
1004 int mod, regop, rm, vvvv = vex_vreg();
1005 get_modrm(*current, &mod, &regop, &rm);
1008 AppendToBuffer("vandpd %s,%s,", NameOfXMMRegister(regop),
1013 AppendToBuffer("vxorpd %s,%s,", NameOfXMMRegister(regop),
1045 int regop = (modrm_byte >> 3) & 0x7; // reg/op field of modrm byte.
1047 case 0xD9: switch (regop) {
1056 case 0xDB: switch (regop) {
1065 case 0xDD: switch (regop) {
1074 case 0xDF: switch (regop) {
1357 int mod, regop, rm;
1358 get_modrm(*data, &mod, &regop, &rm);
1359 if (regop == eax) {
1381 int mod, regop, rm;
1382 get_modrm(*data, &mod, &regop, &rm);
1384 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]);
1410 int mod, regop, rm;
1411 get_modrm(*data, &mod, &regop, &rm);
1413 NameOfXMMRegister(regop),
1418 int mod, regop, rm;
1419 get_modrm(*data, &mod, &regop, &rm);
1420 AppendToBuffer("ucomiss %s,", NameOfXMMRegister(regop));
1440 int mod, regop, rm;
1441 get_modrm(*data, &mod, &regop, &rm);
1444 NameOfXMMRegister(regop));
1448 int mod, regop, rm;
1449 get_modrm(*data, &mod, &regop, &rm);
1451 NameOfCPURegister(regop),
1457 int mod, regop, rm;
1458 get_modrm(*data, &mod, &regop, &rm);
1462 NameOfXMMRegister(regop),
1479 int mod, regop, rm;
1480 get_modrm(*data, &mod, &regop, &rm);
1483 AppendToBuffer(",%s", NameOfCPURegister(regop));
1485 AppendToBuffer(",%s,cl", NameOfCPURegister(regop));
1489 int mod, regop, rm;
1490 get_modrm(*data, &mod, &regop, &rm);
1491 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop));
1495 int mod, regop, rm;
1496 get_modrm(*data, &mod, &regop, &rm);
1497 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop));
1507 int mod, regop, rm;
1508 get_modrm(*data, &mod, &regop, &rm);
1509 if (regop == eax) {
1518 int mod, regop, rm;
1519 get_modrm(*data, &mod, &regop, &rm);
1521 switch (regop) {
1556 int mod, regop, rm;
1557 get_modrm(*data, &mod, &regop, &rm);
1559 switch (regop) {
1575 int mod, regop, rm;
1577 get_modrm(*data, &mod, &regop, &rm);
1581 AppendToBuffer(",%s", NameOfByteCPURegister(regop));
1585 AppendToBuffer(",%s", NameOfCPURegister(regop));
1601 int mod, regop, rm;
1602 get_modrm(*data, &mod, &regop, &rm);
1605 AppendToBuffer(",%s", NameOfCPURegister(regop));
1619 int mod, regop, rm;
1620 get_modrm(*data, &mod, &regop, &rm);
1622 NameOfXMMRegister(regop),
1635 int mod, regop, rm;
1636 get_modrm(*data, &mod, &regop, &rm);
1639 NameOfXMMRegister(regop),
1645 int mod, regop, rm;
1646 get_modrm(*data, &mod, &rm, &regop);
1649 NameOfCPURegister(regop),
1655 int mod, regop, rm;
1656 get_modrm(*data, &mod, &regop, &rm);
1660 NameOfXMMRegister(regop),
1665 int mod, regop, rm;
1666 get_modrm(*data, &mod, &regop, &rm);
1669 NameOfXMMRegister(regop),
1679 int mod, regop, rm;
1680 get_modrm(*data, &mod, &regop, &rm);
1683 NameOfXMMRegister(regop),
1687 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
1692 int mod, regop, rm;
1693 get_modrm(*data, &mod, &regop, &rm);
1695 NameOfCPURegister(regop),
1700 int mod, regop, rm;
1701 get_modrm(*data, &mod, &regop, &rm);
1703 NameOfXMMRegister(regop),
1708 int mod, regop, rm;
1709 get_modrm(*data, &mod, &regop, &rm);
1711 NameOfXMMRegister(regop),
1716 int mod, regop, rm;
1717 get_modrm(*data, &mod, &regop, &rm);
1719 NameOfXMMRegister(regop),
1724 int mod, regop, rm;
1725 get_modrm(*data, &mod, &regop, &rm);
1726 AppendToBuffer("movd %s,", NameOfXMMRegister(regop));
1730 int mod, regop, rm;
1731 get_modrm(*data, &mod, &regop, &rm);
1732 AppendToBuffer("movdqa %s,", NameOfXMMRegister(regop));
1736 int mod, regop, rm;
1737 get_modrm(*data, &mod, &regop, &rm);
1740 NameOfXMMRegister(regop),
1746 int mod, regop, rm;
1747 get_modrm(*data, &mod, &regop, &rm);
1748 AppendToBuffer("punpckldq %s,%s", NameOfXMMRegister(regop),
1753 int mod, regop, rm;
1754 get_modrm(*data, &mod, &regop, &rm);
1755 AppendToBuffer("punpckhdq %s,%s", NameOfXMMRegister(regop),
1760 int mod, regop, rm;
1761 get_modrm(*data, &mod, &regop, &rm);
1763 NameOfXMMRegister(regop),
1771 int mod, regop, rm;
1772 get_modrm(*data, &mod, &regop, &rm);
1774 NameOfXMMRegister(regop),
1779 int mod, regop, rm;
1780 get_modrm(*data, &mod, &regop, &rm);
1782 DCHECK(regop == esi || regop == edx);
1783 AppendToBuffer("%s %s,%d", (regop == esi) ? "pslld" : "psrld",
1788 int mod, regop, rm;
1789 get_modrm(*data, &mod, &regop, &rm);
1791 DCHECK(regop == esi || regop == edx);
1793 (regop == esi) ? "psllq" : "psrlq",
1799 int mod, regop, rm;
1800 get_modrm(*data, &mod, &regop, &rm);
1802 NameOfXMMRegister(regop),
1808 int mod, regop, rm;
1809 get_modrm(*data, &mod, &regop, &rm);
1811 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1814 int mod, regop, rm;
1815 get_modrm(*data, &mod, &regop, &rm);
1818 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1821 int mod, regop, rm;
1822 get_modrm(*data, &mod, &regop, &rm);
1824 NameOfXMMRegister(regop),
1829 int mod, regop, rm;
1830 get_modrm(*data, &mod, &regop, &rm);
1839 int mod, regop, rm;
1840 get_modrm(*data, &mod, &regop, &rm);
1842 NameOfXMMRegister(regop),
1847 int mod, regop, rm;
1848 get_modrm(*data, &mod, &regop, &rm);
1850 NameOfXMMRegister(regop),
1863 int mod, regop, rm;
1864 get_modrm(*data, &mod, &regop, &rm);
1865 if (regop == ecx) {
1921 int mod, regop, rm;
1922 get_modrm(*data, &mod, &regop, &rm);
1924 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1927 int mod, regop, rm;
1928 get_modrm(*data, &mod, &regop, &rm);
1929 AppendToBuffer("movsd %s,", NameOfXMMRegister(regop));
1933 int mod, regop, rm;
1934 get_modrm(*data, &mod, &regop, &rm);
1935 AppendToBuffer("cvtsd2ss %s,", NameOfXMMRegister(regop));
1972 int mod, regop, rm;
1973 get_modrm(*data, &mod, &regop, &rm);
1975 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
1978 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
1994 NameOfXMMRegister(regop),
1998 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2013 int mod, regop, rm;
2014 get_modrm(*data, &mod, &regop, &rm);
2016 AppendToBuffer(",%s", NameOfXMMRegister(regop));
2019 int mod, regop, rm;
2020 get_modrm(*data, &mod, &regop, &rm);
2021 AppendToBuffer("movss %s,", NameOfXMMRegister(regop));
2025 int mod, regop, rm;
2026 get_modrm(*data, &mod, &regop, &rm);
2027 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop));
2031 int mod, regop, rm;
2032 get_modrm(*data, &mod, &regop, &rm);
2033 AppendToBuffer("movdqu %s,", NameOfXMMRegister(regop));
2038 int mod, regop, rm;
2039 get_modrm(*data, &mod, &regop, &rm);
2041 AppendToBuffer(",%s", NameOfXMMRegister(regop));
2044 int mod, regop, rm;
2045 get_modrm(*data, &mod, &regop, &rm);
2046 AppendToBuffer("popcnt %s,", NameOfCPURegister(regop));
2050 int mod, regop, rm;
2051 get_modrm(*data, &mod, &regop, &rm);
2052 AppendToBuffer("tzcnt %s,", NameOfCPURegister(regop));
2056 int mod, regop, rm;
2057 get_modrm(*data, &mod, &regop, &rm);
2058 AppendToBuffer("lzcnt %s,", NameOfCPURegister(regop));
2095 int mod, regop, rm;
2096 get_modrm(*data, &mod, &regop, &rm);
2098 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));
2101 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop));
2109 NameOfXMMRegister(regop), NameOfXMMRegister(rm));
2112 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop));