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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 } else if (*data == 0x16) { | 1206 } else if (*data == 0x16) { |
1207 data++; | 1207 data++; |
1208 int mod, regop, rm; | 1208 int mod, regop, rm; |
1209 get_modrm(*data, &mod, ®op, &rm); | 1209 get_modrm(*data, &mod, ®op, &rm); |
1210 int8_t imm8 = static_cast<int8_t>(data[1]); | 1210 int8_t imm8 = static_cast<int8_t>(data[1]); |
1211 AppendToBuffer("pextrd %s,%s,%d", | 1211 AppendToBuffer("pextrd %s,%s,%d", |
1212 NameOfCPURegister(regop), | 1212 NameOfCPURegister(regop), |
1213 NameOfXMMRegister(rm), | 1213 NameOfXMMRegister(rm), |
1214 static_cast<int>(imm8)); | 1214 static_cast<int>(imm8)); |
1215 data += 2; | 1215 data += 2; |
1216 } else if (*data == 0x17){ | 1216 } else if (*data == 0x17) { |
1217 data++; | 1217 data++; |
1218 int mod, regop, rm; | 1218 int mod, regop, rm; |
1219 get_modrm(*data, &mod, ®op, &rm); | 1219 get_modrm(*data, &mod, ®op, &rm); |
1220 int8_t imm8 = static_cast<int8_t>(data[1]); | 1220 int8_t imm8 = static_cast<int8_t>(data[1]); |
1221 AppendToBuffer("extractps %s,%s,%d", | 1221 AppendToBuffer("extractps %s,%s,%d", |
1222 NameOfCPURegister(regop), | 1222 NameOfCPURegister(regop), |
1223 NameOfXMMRegister(rm), | 1223 NameOfXMMRegister(rm), |
1224 static_cast<int>(imm8)); | 1224 static_cast<int>(imm8)); |
1225 data += 2; | 1225 data += 2; |
1226 } else if (*data == 0x22) { | 1226 } else if (*data == 0x22) { |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 fprintf(f, " "); | 1690 fprintf(f, " "); |
1691 } | 1691 } |
1692 fprintf(f, " %s\n", buffer.start()); | 1692 fprintf(f, " %s\n", buffer.start()); |
1693 } | 1693 } |
1694 } | 1694 } |
1695 | 1695 |
1696 | 1696 |
1697 } // namespace disasm | 1697 } // namespace disasm |
1698 | 1698 |
1699 #endif // V8_TARGET_ARCH_IA32 | 1699 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |