Lines Matching refs:regop
312 static void get_modrm(byte data, int* mod, int* regop, int* rm) { in get_modrm() argument
314 *regop = (data & 0x38) >> 3; in get_modrm()
341 int MemoryFPUInstruction(int escape_opcode, int regop, byte* modrm_start);
368 int mod, regop, rm; in PrintRightOperandHelper() local
369 get_modrm(*modrmp, &mod, ®op, &rm); in PrintRightOperandHelper()
476 int mod, regop, rm; in PrintOperands() local
477 get_modrm(modrm, &mod, ®op, &rm); in PrintOperands()
481 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in PrintOperands()
488 AppendToBuffer(",%s", NameOfCPURegister(regop)); in PrintOperands()
504 int mod, regop, rm; in PrintImmediateOp() local
505 get_modrm(modrm, &mod, ®op, &rm); in PrintImmediateOp()
507 switch (regop) { in PrintImmediateOp()
533 int mod, regop, rm; in F7Instruction() local
534 get_modrm(modrm, &mod, ®op, &rm); in F7Instruction()
536 switch (regop) { in F7Instruction()
563 if (regop == 0) { in F7Instruction()
575 int mod, regop, rm; in D1D3C1Instruction() local
576 get_modrm(modrm, &mod, ®op, &rm); in D1D3C1Instruction()
579 switch (regop) { in D1D3C1Instruction()
699 int regop = (modrm_byte >> 3) & 0x7; // reg/op field of modrm byte. in MemoryFPUInstruction() local
701 case 0xD9: switch (regop) { in MemoryFPUInstruction()
715 case 0xDB: switch (regop) { in MemoryFPUInstruction()
725 switch (regop) { in MemoryFPUInstruction()
734 case 0xDD: switch (regop) { in MemoryFPUInstruction()
749 case 0xDF: switch (regop) { in MemoryFPUInstruction()
1012 int mod, regop, rm; in InstructionDecode() local
1013 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1014 if (regop == eax) { in InstructionDecode()
1036 int mod, regop, rm; in InstructionDecode() local
1037 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1039 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]); in InstructionDecode()
1065 int mod, regop, rm; in InstructionDecode() local
1066 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1068 NameOfXMMRegister(regop), in InstructionDecode()
1089 int mod, regop, rm; in InstructionDecode() local
1090 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1093 NameOfXMMRegister(regop)); in InstructionDecode()
1097 int mod, regop, rm; in InstructionDecode() local
1098 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1100 NameOfCPURegister(regop), in InstructionDecode()
1106 int mod, regop, rm; in InstructionDecode() local
1107 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1111 NameOfXMMRegister(regop), in InstructionDecode()
1128 int mod, regop, rm; in InstructionDecode() local
1129 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1132 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1134 AppendToBuffer(",%s,cl", NameOfCPURegister(regop)); in InstructionDecode()
1138 int mod, regop, rm; in InstructionDecode() local
1139 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1140 AppendToBuffer("%s %s,", f0mnem, NameOfCPURegister(regop)); in InstructionDecode()
1150 int mod, regop, rm; in InstructionDecode() local
1151 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1152 if (regop == eax) { in InstructionDecode()
1161 int mod, regop, rm; in InstructionDecode() local
1162 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1164 switch (regop) { in InstructionDecode()
1199 int mod, regop, rm; in InstructionDecode() local
1200 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1202 switch (regop) { in InstructionDecode()
1218 int mod, regop, rm; in InstructionDecode() local
1220 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1224 AppendToBuffer(",%s", NameOfByteCPURegister(regop)); in InstructionDecode()
1228 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1244 int mod, regop, rm; in InstructionDecode() local
1245 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1248 AppendToBuffer(",%s", NameOfCPURegister(regop)); in InstructionDecode()
1262 int mod, regop, rm; in InstructionDecode() local
1263 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1265 NameOfXMMRegister(regop), in InstructionDecode()
1271 int mod, regop, rm; in InstructionDecode() local
1272 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1273 AppendToBuffer("movntdqa %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1282 int mod, regop, rm; in InstructionDecode() local
1283 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1286 NameOfXMMRegister(regop), in InstructionDecode()
1292 int mod, regop, rm; in InstructionDecode() local
1293 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1296 NameOfCPURegister(regop), in InstructionDecode()
1302 int mod, regop, rm; in InstructionDecode() local
1303 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1307 NameOfXMMRegister(regop), in InstructionDecode()
1312 int mod, regop, rm; in InstructionDecode() local
1313 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1316 NameOfXMMRegister(regop), in InstructionDecode()
1326 int mod, regop, rm; in InstructionDecode() local
1327 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1330 NameOfXMMRegister(regop), in InstructionDecode()
1334 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1339 int mod, regop, rm; in InstructionDecode() local
1340 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1342 NameOfCPURegister(regop), in InstructionDecode()
1347 int mod, regop, rm; in InstructionDecode() local
1348 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1350 NameOfXMMRegister(regop), in InstructionDecode()
1355 int mod, regop, rm; in InstructionDecode() local
1356 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1358 NameOfXMMRegister(regop), in InstructionDecode()
1363 int mod, regop, rm; in InstructionDecode() local
1364 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1366 NameOfXMMRegister(regop), in InstructionDecode()
1371 int mod, regop, rm; in InstructionDecode() local
1372 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1373 AppendToBuffer("movd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1377 int mod, regop, rm; in InstructionDecode() local
1378 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1379 AppendToBuffer("movdqa %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1383 int mod, regop, rm; in InstructionDecode() local
1384 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1387 NameOfXMMRegister(regop), in InstructionDecode()
1393 int mod, regop, rm; in InstructionDecode() local
1394 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1396 NameOfXMMRegister(regop), in InstructionDecode()
1404 int mod, regop, rm; in InstructionDecode() local
1405 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1407 NameOfXMMRegister(regop), in InstructionDecode()
1412 int mod, regop, rm; in InstructionDecode() local
1413 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1415 DCHECK(regop == esi || regop == edx); in InstructionDecode()
1417 (regop == esi) ? "psllq" : "psrlq", in InstructionDecode()
1423 int mod, regop, rm; in InstructionDecode() local
1424 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1426 NameOfXMMRegister(regop), in InstructionDecode()
1432 int mod, regop, rm; in InstructionDecode() local
1433 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1435 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1438 int mod, regop, rm; in InstructionDecode() local
1439 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1442 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1445 int mod, regop, rm; in InstructionDecode() local
1446 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1448 NameOfXMMRegister(regop), in InstructionDecode()
1453 int mod, regop, rm; in InstructionDecode() local
1454 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1458 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1464 int mod, regop, rm; in InstructionDecode() local
1465 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1467 NameOfXMMRegister(regop), in InstructionDecode()
1472 int mod, regop, rm; in InstructionDecode() local
1473 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1475 NameOfXMMRegister(regop), in InstructionDecode()
1488 int mod, regop, rm; in InstructionDecode() local
1489 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1490 if (regop == ecx) { in InstructionDecode()
1546 int mod, regop, rm; in InstructionDecode() local
1547 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1549 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1552 int mod, regop, rm; in InstructionDecode() local
1553 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1554 AppendToBuffer("movsd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1558 int mod, regop, rm; in InstructionDecode() local
1559 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1560 AppendToBuffer("cvtsd2ss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1575 int mod, regop, rm; in InstructionDecode() local
1576 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1578 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1581 AppendToBuffer("%s %s,", mnem, NameOfCPURegister(regop)); in InstructionDecode()
1597 NameOfXMMRegister(regop), in InstructionDecode()
1601 AppendToBuffer("%s %s,", mnem, NameOfXMMRegister(regop)); in InstructionDecode()
1616 int mod, regop, rm; in InstructionDecode() local
1617 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1619 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()
1622 int mod, regop, rm; in InstructionDecode() local
1623 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1624 AppendToBuffer("movss %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1628 int mod, regop, rm; in InstructionDecode() local
1629 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1630 AppendToBuffer("cvttss2si %s,", NameOfCPURegister(regop)); in InstructionDecode()
1634 int mod, regop, rm; in InstructionDecode() local
1635 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1636 AppendToBuffer("cvtss2sd %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1640 int mod, regop, rm; in InstructionDecode() local
1641 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1642 AppendToBuffer("movdqu %s,", NameOfXMMRegister(regop)); in InstructionDecode()
1647 int mod, regop, rm; in InstructionDecode() local
1648 get_modrm(*data, &mod, ®op, &rm); in InstructionDecode()
1650 AppendToBuffer(",%s", NameOfXMMRegister(regop)); in InstructionDecode()