OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 UnimplementedInstruction(); | 1108 UnimplementedInstruction(); |
1109 } | 1109 } |
1110 } else if (*data == 0x3A) { | 1110 } else if (*data == 0x3A) { |
1111 data++; | 1111 data++; |
1112 if (*data == 0x16) { | 1112 if (*data == 0x16) { |
1113 data++; | 1113 data++; |
1114 int mod, regop, rm; | 1114 int mod, regop, rm; |
1115 get_modrm(*data, &mod, ®op, &rm); | 1115 get_modrm(*data, &mod, ®op, &rm); |
1116 int8_t imm8 = static_cast<int8_t>(data[1]); | 1116 int8_t imm8 = static_cast<int8_t>(data[1]); |
1117 AppendToBuffer("pextrd %s,%s,%d", | 1117 AppendToBuffer("pextrd %s,%s,%d", |
| 1118 NameOfCPURegister(regop), |
| 1119 NameOfXMMRegister(rm), |
| 1120 static_cast<int>(imm8)); |
| 1121 data += 2; |
| 1122 } else if (*data == 0x22) { |
| 1123 data++; |
| 1124 int mod, regop, rm; |
| 1125 get_modrm(*data, &mod, ®op, &rm); |
| 1126 int8_t imm8 = static_cast<int8_t>(data[1]); |
| 1127 AppendToBuffer("pinsrd %s,%s,%d", |
1118 NameOfXMMRegister(regop), | 1128 NameOfXMMRegister(regop), |
1119 NameOfXMMRegister(rm), | 1129 NameOfCPURegister(rm), |
1120 static_cast<int>(imm8)); | 1130 static_cast<int>(imm8)); |
1121 data += 2; | 1131 data += 2; |
1122 } else { | 1132 } else { |
1123 UnimplementedInstruction(); | 1133 UnimplementedInstruction(); |
1124 } | 1134 } |
1125 } else if (*data == 0x2E || *data == 0x2F) { | 1135 } else if (*data == 0x2E || *data == 0x2F) { |
1126 const char* mnem = (*data == 0x2E) ? "ucomisd" : "comisd"; | 1136 const char* mnem = (*data == 0x2E) ? "ucomisd" : "comisd"; |
1127 data++; | 1137 data++; |
1128 int mod, regop, rm; | 1138 int mod, regop, rm; |
1129 get_modrm(*data, &mod, ®op, &rm); | 1139 get_modrm(*data, &mod, ®op, &rm); |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 fprintf(f, " "); | 1588 fprintf(f, " "); |
1579 } | 1589 } |
1580 fprintf(f, " %s\n", buffer.start()); | 1590 fprintf(f, " %s\n", buffer.start()); |
1581 } | 1591 } |
1582 } | 1592 } |
1583 | 1593 |
1584 | 1594 |
1585 } // namespace disasm | 1595 } // namespace disasm |
1586 | 1596 |
1587 #endif // V8_TARGET_ARCH_IA32 | 1597 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |