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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 } else if (*data == 0x70) { | 1298 } else if (*data == 0x70) { |
1299 data++; | 1299 data++; |
1300 int mod, regop, rm; | 1300 int mod, regop, rm; |
1301 get_modrm(*data, &mod, ®op, &rm); | 1301 get_modrm(*data, &mod, ®op, &rm); |
1302 int8_t imm8 = static_cast<int8_t>(data[1]); | 1302 int8_t imm8 = static_cast<int8_t>(data[1]); |
1303 AppendToBuffer("pshufd %s,%s,%d", | 1303 AppendToBuffer("pshufd %s,%s,%d", |
1304 NameOfXMMRegister(regop), | 1304 NameOfXMMRegister(regop), |
1305 NameOfXMMRegister(rm), | 1305 NameOfXMMRegister(rm), |
1306 static_cast<int>(imm8)); | 1306 static_cast<int>(imm8)); |
1307 data += 2; | 1307 data += 2; |
| 1308 } else if (*data == 0x76) { |
| 1309 data++; |
| 1310 int mod, regop, rm; |
| 1311 get_modrm(*data, &mod, ®op, &rm); |
| 1312 AppendToBuffer("pcmpeqd %s,%s", |
| 1313 NameOfXMMRegister(regop), |
| 1314 NameOfXMMRegister(rm)); |
| 1315 data++; |
1308 } else if (*data == 0x90) { | 1316 } else if (*data == 0x90) { |
1309 data++; | 1317 data++; |
1310 AppendToBuffer("nop"); // 2 byte nop. | 1318 AppendToBuffer("nop"); // 2 byte nop. |
1311 } else if (*data == 0xF3) { | 1319 } else if (*data == 0xF3) { |
1312 data++; | 1320 data++; |
1313 int mod, regop, rm; | 1321 int mod, regop, rm; |
1314 get_modrm(*data, &mod, ®op, &rm); | 1322 get_modrm(*data, &mod, ®op, &rm); |
1315 AppendToBuffer("psllq %s,%s", | 1323 AppendToBuffer("psllq %s,%s", |
1316 NameOfXMMRegister(regop), | 1324 NameOfXMMRegister(regop), |
1317 NameOfXMMRegister(rm)); | 1325 NameOfXMMRegister(rm)); |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 fprintf(f, " "); | 1708 fprintf(f, " "); |
1701 } | 1709 } |
1702 fprintf(f, " %s\n", buffer.start()); | 1710 fprintf(f, " %s\n", buffer.start()); |
1703 } | 1711 } |
1704 } | 1712 } |
1705 | 1713 |
1706 | 1714 |
1707 } // namespace disasm | 1715 } // namespace disasm |
1708 | 1716 |
1709 #endif // V8_TARGET_ARCH_IA32 | 1717 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |