OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 current += PrintRightOperand(current); | 1055 current += PrintRightOperand(current); |
1056 AppendToBuffer(", %s", NameOfXMMRegister(regop)); | 1056 AppendToBuffer(", %s", NameOfXMMRegister(regop)); |
1057 } else if (opcode == 0x7F) { | 1057 } else if (opcode == 0x7F) { |
1058 AppendToBuffer("movdqa "); | 1058 AppendToBuffer("movdqa "); |
1059 current += PrintRightXMMOperand(current); | 1059 current += PrintRightXMMOperand(current); |
1060 AppendToBuffer(", %s", NameOfXMMRegister(regop)); | 1060 AppendToBuffer(", %s", NameOfXMMRegister(regop)); |
1061 } else if (opcode == 0xD6) { | 1061 } else if (opcode == 0xD6) { |
1062 AppendToBuffer("movq "); | 1062 AppendToBuffer("movq "); |
1063 current += PrintRightXMMOperand(current); | 1063 current += PrintRightXMMOperand(current); |
1064 AppendToBuffer(", %s", NameOfXMMRegister(regop)); | 1064 AppendToBuffer(", %s", NameOfXMMRegister(regop)); |
| 1065 } else if (opcode == 0x50) { |
| 1066 AppendToBuffer("movmskpd %s,", NameOfCPURegister(regop)); |
| 1067 current += PrintRightXMMOperand(current); |
1065 } else { | 1068 } else { |
1066 const char* mnemonic = "?"; | 1069 const char* mnemonic = "?"; |
1067 if (opcode == 0x50) { | 1070 if (opcode == 0x54) { |
1068 mnemonic = "movmskpd"; | |
1069 } else if (opcode == 0x54) { | |
1070 mnemonic = "andpd"; | 1071 mnemonic = "andpd"; |
1071 } else if (opcode == 0x56) { | 1072 } else if (opcode == 0x56) { |
1072 mnemonic = "orpd"; | 1073 mnemonic = "orpd"; |
1073 } else if (opcode == 0x57) { | 1074 } else if (opcode == 0x57) { |
1074 mnemonic = "xorpd"; | 1075 mnemonic = "xorpd"; |
1075 } else if (opcode == 0x2E) { | 1076 } else if (opcode == 0x2E) { |
1076 mnemonic = "ucomisd"; | 1077 mnemonic = "ucomisd"; |
1077 } else if (opcode == 0x2F) { | 1078 } else if (opcode == 0x2F) { |
1078 mnemonic = "comisd"; | 1079 mnemonic = "comisd"; |
1079 } else { | 1080 } else { |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1823 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 1824 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
1824 fprintf(f, " "); | 1825 fprintf(f, " "); |
1825 } | 1826 } |
1826 fprintf(f, " %s\n", buffer.start()); | 1827 fprintf(f, " %s\n", buffer.start()); |
1827 } | 1828 } |
1828 } | 1829 } |
1829 | 1830 |
1830 } // namespace disasm | 1831 } // namespace disasm |
1831 | 1832 |
1832 #endif // V8_TARGET_ARCH_X64 | 1833 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |