Lines Matching refs:current

883   byte* current = data + 1;  in AVXInstruction()  local
886 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
891 current += PrintRightXMMOperand(current); in AVXInstruction()
896 current += PrintRightXMMOperand(current); in AVXInstruction()
901 current += PrintRightXMMOperand(current); in AVXInstruction()
906 current += PrintRightXMMOperand(current); in AVXInstruction()
911 current += PrintRightXMMOperand(current); in AVXInstruction()
916 current += PrintRightXMMOperand(current); in AVXInstruction()
921 current += PrintRightXMMOperand(current); in AVXInstruction()
926 current += PrintRightXMMOperand(current); in AVXInstruction()
931 current += PrintRightXMMOperand(current); in AVXInstruction()
936 current += PrintRightXMMOperand(current); in AVXInstruction()
941 current += PrintRightXMMOperand(current); in AVXInstruction()
946 current += PrintRightXMMOperand(current); in AVXInstruction()
951 current += PrintRightOperand(current); in AVXInstruction()
959 current += PrintRightXMMOperand(current); \ in AVXInstruction()
971 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
976 current += PrintRightXMMOperand(current); in AVXInstruction()
977 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
982 current += PrintRightXMMOperand(current); in AVXInstruction()
983 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
987 current += PrintRightByteOperand(current); in AVXInstruction()
988 AppendToBuffer(",%s,0x%x,", NameOfXMMRegister(regop), *current++); in AVXInstruction()
992 current += PrintRightOperand(current); in AVXInstruction()
993 AppendToBuffer(",%s,0x%x,", NameOfXMMRegister(regop), *current++); in AVXInstruction()
997 current += PrintRightOperand(current); in AVXInstruction()
998 AppendToBuffer(",%s,0x%x,", NameOfXMMRegister(regop), *current++); in AVXInstruction()
1003 current += PrintRightByteOperand(current); in AVXInstruction()
1004 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
1009 current += PrintRightOperand(current); in AVXInstruction()
1010 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
1017 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1024 current += PrintRightXMMOperand(current); in AVXInstruction()
1028 current += PrintRightXMMOperand(current); in AVXInstruction()
1037 current += PrintRightOperand(current); in AVXInstruction()
1042 current += PrintRightXMMOperand(current); in AVXInstruction()
1047 current += PrintRightXMMOperand(current); in AVXInstruction()
1052 current += PrintRightXMMOperand(current); in AVXInstruction()
1057 current += PrintRightXMMOperand(current); in AVXInstruction()
1062 current += PrintRightXMMOperand(current); in AVXInstruction()
1067 current += PrintRightXMMOperand(current); in AVXInstruction()
1072 current += PrintRightXMMOperand(current); in AVXInstruction()
1077 current += PrintRightXMMOperand(current); in AVXInstruction()
1084 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1091 current += PrintRightXMMOperand(current); in AVXInstruction()
1095 current += PrintRightXMMOperand(current); in AVXInstruction()
1104 current += PrintRightOperand(current); in AVXInstruction()
1109 current += PrintRightXMMOperand(current); in AVXInstruction()
1114 current += PrintRightXMMOperand(current); in AVXInstruction()
1119 current += PrintRightXMMOperand(current); in AVXInstruction()
1124 current += PrintRightXMMOperand(current); in AVXInstruction()
1129 current += PrintRightXMMOperand(current); in AVXInstruction()
1134 current += PrintRightXMMOperand(current); in AVXInstruction()
1139 current += PrintRightXMMOperand(current); in AVXInstruction()
1144 current += PrintRightXMMOperand(current); in AVXInstruction()
1149 current += PrintRightXMMOperand(current); in AVXInstruction()
1154 current += PrintRightXMMOperand(current); in AVXInstruction()
1158 current += PrintRightXMMOperand(current); in AVXInstruction()
1165 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1171 current += PrintRightOperand(current); in AVXInstruction()
1176 current += PrintRightOperand(current); in AVXInstruction()
1182 current += PrintRightOperand(current); in AVXInstruction()
1201 current += PrintRightOperand(current); in AVXInstruction()
1209 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1214 current += PrintRightOperand(current); in AVXInstruction()
1219 current += PrintRightOperand(current); in AVXInstruction()
1224 current += PrintRightOperand(current); in AVXInstruction()
1232 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1237 current += PrintRightOperand(current); in AVXInstruction()
1242 current += PrintRightOperand(current); in AVXInstruction()
1250 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1255 current += PrintRightOperand(current); in AVXInstruction()
1258 AppendToBuffer(",%d", *current & 0x1f); in AVXInstruction()
1261 AppendToBuffer(",%d", *current & 0x3f); in AVXInstruction()
1266 current += 1; in AVXInstruction()
1273 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1277 current += PrintRightXMMOperand(current); in AVXInstruction()
1281 current += PrintRightXMMOperand(current); in AVXInstruction()
1286 current += PrintRightXMMOperand(current); in AVXInstruction()
1290 current += PrintRightXMMOperand(current); in AVXInstruction()
1295 current += PrintRightXMMOperand(current); in AVXInstruction()
1299 current += PrintRightXMMOperand(current); in AVXInstruction()
1304 current += PrintRightXMMOperand(current); in AVXInstruction()
1309 current += PrintRightXMMOperand(current); in AVXInstruction()
1314 current += PrintRightXMMOperand(current); in AVXInstruction()
1317 AppendToBuffer(", (%s)", pseudo_op[*current]); in AVXInstruction()
1318 current += 1; in AVXInstruction()
1326 get_modrm(*current, &mod, &regop, &rm); in AVXInstruction()
1330 current += PrintRightXMMOperand(current); in AVXInstruction()
1334 current += PrintRightXMMOperand(current); in AVXInstruction()
1339 current += PrintRightXMMOperand(current); in AVXInstruction()
1343 current += PrintRightXMMOperand(current); in AVXInstruction()
1348 current += PrintRightXMMOperand(current); in AVXInstruction()
1352 current += PrintRightXMMOperand(current); in AVXInstruction()
1357 current += PrintRightXMMOperand(current); in AVXInstruction()
1362 current += PrintRightXMMOperand(current); in AVXInstruction()
1367 current += PrintRightXMMOperand(current); in AVXInstruction()
1372 current += PrintRightOperand(current); in AVXInstruction()
1376 current += PrintRightXMMOperand(current); in AVXInstruction()
1377 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
1382 current += PrintRightXMMOperand(current); in AVXInstruction()
1383 AppendToBuffer(",%u", *current++); in AVXInstruction()
1388 current += PrintRightXMMOperand(current); in AVXInstruction()
1389 AppendToBuffer(",%u", *current++); in AVXInstruction()
1394 current += PrintRightXMMOperand(current); in AVXInstruction()
1395 AppendToBuffer(",%u", *current++); in AVXInstruction()
1399 current += PrintRightOperand(current); in AVXInstruction()
1405 current += PrintRightXMMOperand(current); in AVXInstruction()
1408 AppendToBuffer(", (%s)", pseudo_op[*current]); in AVXInstruction()
1409 current += 1; in AVXInstruction()
1415 current += PrintRightOperand(current); in AVXInstruction()
1416 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
1420 current += PrintRightXMMOperand(current); in AVXInstruction()
1421 AppendToBuffer(",0x%x", *current++); in AVXInstruction()
1427 current += PrintRightXMMOperand(current); \ in AVXInstruction()
1441 return static_cast<int>(current - data); in AVXInstruction()
1629 byte* current = data + 2; in TwoByteOpcodeInstruction() local
1636 byte third_byte = *current; in TwoByteOpcodeInstruction()
1637 current = data + 3; in TwoByteOpcodeInstruction()
1638 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1643 current += PrintRightXMMOperand(current); \ in TwoByteOpcodeInstruction()
1654 byte third_byte = *current; in TwoByteOpcodeInstruction()
1655 current = data + 3; in TwoByteOpcodeInstruction()
1657 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1659 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1660 AppendToBuffer(",%s,%d", NameOfXMMRegister(regop), (*current) & 3); in TwoByteOpcodeInstruction()
1661 current += 1; in TwoByteOpcodeInstruction()
1663 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1665 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1666 AppendToBuffer(",0x%x", (*current) & 3); in TwoByteOpcodeInstruction()
1667 current += 1; in TwoByteOpcodeInstruction()
1669 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1672 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1673 AppendToBuffer(",0x%x", (*current) & 3); in TwoByteOpcodeInstruction()
1674 current += 1; in TwoByteOpcodeInstruction()
1676 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1678 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1679 AppendToBuffer(",%s,%d", NameOfXMMRegister(regop), (*current) & 3); in TwoByteOpcodeInstruction()
1680 current += 1; in TwoByteOpcodeInstruction()
1682 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1684 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1685 AppendToBuffer(",%s,%d", NameOfXMMRegister(regop), (*current) & 3); in TwoByteOpcodeInstruction()
1686 current += 1; in TwoByteOpcodeInstruction()
1688 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1690 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1691 AppendToBuffer(",%s,%d", NameOfXMMRegister(regop), (*current) & 3); in TwoByteOpcodeInstruction()
1692 current += 1; in TwoByteOpcodeInstruction()
1694 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1697 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1698 AppendToBuffer(",%d", (*current) & 3); in TwoByteOpcodeInstruction()
1699 current += 1; in TwoByteOpcodeInstruction()
1701 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1704 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1705 AppendToBuffer(",0x%x", (*current) & 3); in TwoByteOpcodeInstruction()
1706 current += 1; in TwoByteOpcodeInstruction()
1708 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1711 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1712 AppendToBuffer(",%d", (*current) & 3); in TwoByteOpcodeInstruction()
1713 current += 1; in TwoByteOpcodeInstruction()
1718 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1720 current++; in TwoByteOpcodeInstruction()
1722 current++; in TwoByteOpcodeInstruction()
1725 current += 1; in TwoByteOpcodeInstruction()
1727 current += 4; in TwoByteOpcodeInstruction()
1732 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1735 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1739 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1742 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1748 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1752 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1756 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1760 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1764 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1768 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1771 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1772 AppendToBuffer(",0x%x", *current); in TwoByteOpcodeInstruction()
1773 current += 1; in TwoByteOpcodeInstruction()
1775 current += 1; in TwoByteOpcodeInstruction()
1777 *current & 0x7f); in TwoByteOpcodeInstruction()
1778 current += 1; in TwoByteOpcodeInstruction()
1780 current += 1; in TwoByteOpcodeInstruction()
1782 *current & 0x7f); in TwoByteOpcodeInstruction()
1783 current += 1; in TwoByteOpcodeInstruction()
1785 current += 1; in TwoByteOpcodeInstruction()
1787 *current & 0x7f); in TwoByteOpcodeInstruction()
1788 current += 1; in TwoByteOpcodeInstruction()
1790 current += PrintOperands("cmpxchg", OPER_REG_OP_ORDER, current); in TwoByteOpcodeInstruction()
1893 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1897 AppendToBuffer(", (%s)", pseudo_op[*current]); in TwoByteOpcodeInstruction()
1898 current += 1; in TwoByteOpcodeInstruction()
1909 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1911 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1915 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1920 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1922 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1927 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1930 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1934 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1937 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1941 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1943 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
1947 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1959 pseudo_op[current[1]], in TwoByteOpcodeInstruction()
1962 current += 2; in TwoByteOpcodeInstruction()
1965 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1967 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1977 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1979 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1983 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1988 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1990 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
1995 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
1998 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2001 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2003 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2007 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2009 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2012 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2015 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
2018 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2021 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
2024 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2027 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
2031 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2035 AppendToBuffer("%s %s,%s", pseudo_op[current[1]], in TwoByteOpcodeInstruction()
2037 current += 2; in TwoByteOpcodeInstruction()
2045 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2048 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2052 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2057 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2058 current++; in TwoByteOpcodeInstruction()
2060 current++; in TwoByteOpcodeInstruction()
2063 current += 1; in TwoByteOpcodeInstruction()
2065 current += 4; in TwoByteOpcodeInstruction()
2072 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2074 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2079 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2081 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2086 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2088 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2098 current += PrintOperands(idesc.mnem, idesc.op_order_, current); in TwoByteOpcodeInstruction()
2107 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2110 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2115 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2119 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2120 AppendToBuffer(", %s", pseudo_op[*current]); in TwoByteOpcodeInstruction()
2121 current += 1; in TwoByteOpcodeInstruction()
2125 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2127 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2128 AppendToBuffer(", %d", (*current) & 3); in TwoByteOpcodeInstruction()
2129 current += 1; in TwoByteOpcodeInstruction()
2133 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2135 current += PrintRightXMMOperand(current); in TwoByteOpcodeInstruction()
2139 current = data + JumpConditional(data); in TwoByteOpcodeInstruction()
2144 current += PrintOperands(mnemonic, REG_OPER_OP_ORDER, current); in TwoByteOpcodeInstruction()
2148 current = data + SetCC(data); in TwoByteOpcodeInstruction()
2154 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2155 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
2165 get_modrm(*current, &mod, &regop, &rm); in TwoByteOpcodeInstruction()
2167 current += PrintRightOperand(current); in TwoByteOpcodeInstruction()
2175 current += PrintOperands(mnemonic, OPER_REG_OP_ORDER, current); in TwoByteOpcodeInstruction()
2179 return static_cast<int>(current - data); in TwoByteOpcodeInstruction()
2246 byte current; in InstructionDecode() local
2250 current = *data; in InstructionDecode()
2251 if (current == OPERAND_SIZE_OVERRIDE_PREFIX) { // Group 3 prefix. in InstructionDecode()
2252 operand_size_ = current; in InstructionDecode()
2253 } else if ((current & 0xF0) == 0x40) { // REX prefix. in InstructionDecode()
2254 setRex(current); in InstructionDecode()
2256 } else if ((current & 0xFE) == 0xF2) { // Group 1 prefix (0xF2 or 0xF3). in InstructionDecode()
2257 group_1_prefix_ = current; in InstructionDecode()
2258 } else if (current == LOCK_PREFIX) { in InstructionDecode()
2260 } else if (current == VEX3_PREFIX) { in InstructionDecode()
2261 vex_byte0_ = current; in InstructionDecode()
2267 } else if (current == VEX2_PREFIX) { in InstructionDecode()
2268 vex_byte0_ = current; in InstructionDecode()
2284 const InstructionDesc& idesc = instruction_table_->Get(current); in InstructionDecode()
2288 if (current >= 0xA4 && current <= 0xA7) { in InstructionDecode()
2313 NameOfCPURegister(base_reg(current & 0x07))); in InstructionDecode()
2318 NameOfCPURegister(base_reg(current & 0x07))); in InstructionDecode()
2343 NameOfCPURegister(base_reg(current & 0x07)), in InstructionDecode()