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