Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: runtime/vm/disassembler_x64.cc

Issue 23653014: Add cvtsd2ss into X64 disassembler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
8 #if defined(TARGET_ARCH_X64) 8 #if defined(TARGET_ARCH_X64)
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 // CMOVcc: conditional move. 1435 // CMOVcc: conditional move.
1436 int condition = opcode & 0x0F; 1436 int condition = opcode & 0x0F;
1437 const InstructionDesc& idesc = cmov_instructions[condition]; 1437 const InstructionDesc& idesc = cmov_instructions[condition];
1438 byte_size_operand_ = idesc.byte_size_operation; 1438 byte_size_operand_ = idesc.byte_size_operation;
1439 current += PrintOperands(idesc.mnem, idesc.op_order_, current); 1439 current += PrintOperands(idesc.mnem, idesc.op_order_, current);
1440 1440
1441 } else if (opcode == 0x12 || opcode == 0x14 || opcode == 0x15 || 1441 } else if (opcode == 0x12 || opcode == 0x14 || opcode == 0x15 ||
1442 opcode == 0x16 || opcode == 0x51 || opcode == 0x52 || 1442 opcode == 0x16 || opcode == 0x51 || opcode == 0x52 ||
1443 opcode == 0x53 || opcode == 0x54 || opcode == 0x56 || 1443 opcode == 0x53 || opcode == 0x54 || opcode == 0x56 ||
1444 opcode == 0x57 || opcode == 0x58 || opcode == 0x59 || 1444 opcode == 0x57 || opcode == 0x58 || opcode == 0x59 ||
1445 opcode == 0x5C || opcode == 0x5D || opcode == 0x5E || 1445 opcode == 0x5A || opcode == 0x5C || opcode == 0x5D ||
1446 opcode == 0x5F) { 1446 opcode == 0x5E || opcode == 0x5F) {
1447 const char* mnemonic = NULL; 1447 const char* mnemonic = NULL;
1448 switch (opcode) { 1448 switch (opcode) {
1449 case 0x12: mnemonic = "movhlps"; break; 1449 case 0x12: mnemonic = "movhlps"; break;
1450 case 0x14: mnemonic = "unpcklps"; break; 1450 case 0x14: mnemonic = "unpcklps"; break;
1451 case 0x15: mnemonic = "unpckhps"; break; 1451 case 0x15: mnemonic = "unpckhps"; break;
1452 case 0x16: mnemonic = "movlhps"; break; 1452 case 0x16: mnemonic = "movlhps"; break;
1453 case 0x51: mnemonic = "sqrtps"; break; 1453 case 0x51: mnemonic = "sqrtps"; break;
1454 case 0x52: mnemonic = "rsqrtps"; break; 1454 case 0x52: mnemonic = "rsqrtps"; break;
1455 case 0x53: mnemonic = "rcpps"; break; 1455 case 0x53: mnemonic = "rcpps"; break;
1456 case 0x54: mnemonic = "andps"; break; 1456 case 0x54: mnemonic = "andps"; break;
1457 case 0x56: mnemonic = "orps"; break; 1457 case 0x56: mnemonic = "orps"; break;
1458 case 0x57: mnemonic = "xorps"; break; 1458 case 0x57: mnemonic = "xorps"; break;
1459 case 0x58: mnemonic = "addps"; break; 1459 case 0x58: mnemonic = "addps"; break;
1460 case 0x59: mnemonic = "mulps"; break; 1460 case 0x59: mnemonic = "mulps"; break;
1461 case 0x5A: mnemonic = "cvtsd2ss"; break;
1461 case 0x5C: mnemonic = "subps"; break; 1462 case 0x5C: mnemonic = "subps"; break;
1462 case 0x5D: mnemonic = "minps"; break; 1463 case 0x5D: mnemonic = "minps"; break;
1463 case 0x5E: mnemonic = "divps"; break; 1464 case 0x5E: mnemonic = "divps"; break;
1464 case 0x5F: mnemonic = "maxps"; break; 1465 case 0x5F: mnemonic = "maxps"; break;
1465 default: UNREACHABLE(); 1466 default: UNREACHABLE();
1466 } 1467 }
1467 int mod, regop, rm; 1468 int mod, regop, rm;
1468 get_modrm(*current, &mod, &regop, &rm); 1469 get_modrm(*current, &mod, &regop, &rm);
1469 AppendToBuffer("%s %s, ", mnemonic, NameOfXMMRegister(regop)); 1470 AppendToBuffer("%s %s, ", mnemonic, NameOfXMMRegister(regop));
1470 current += PrintRightXMMOperand(current); 1471 current += PrintRightXMMOperand(current);
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 pc); 1938 pc);
1938 pc += instruction_length; 1939 pc += instruction_length;
1939 } 1940 }
1940 1941
1941 return; 1942 return;
1942 } 1943 }
1943 1944
1944 } // namespace dart 1945 } // namespace dart
1945 1946
1946 #endif // defined TARGET_ARCH_X64 1947 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698