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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 data++; | 1134 data++; |
1135 int mod, regop, rm; | 1135 int mod, regop, rm; |
1136 get_modrm(*data, &mod, ®op, &rm); | 1136 get_modrm(*data, &mod, ®op, &rm); |
1137 AppendToBuffer("movntdqa %s,", NameOfXMMRegister(regop)); | 1137 AppendToBuffer("movntdqa %s,", NameOfXMMRegister(regop)); |
1138 data += PrintRightOperand(data); | 1138 data += PrintRightOperand(data); |
1139 } else { | 1139 } else { |
1140 UnimplementedInstruction(); | 1140 UnimplementedInstruction(); |
1141 } | 1141 } |
1142 } else if (*data == 0x3A) { | 1142 } else if (*data == 0x3A) { |
1143 data++; | 1143 data++; |
1144 if (*data == 0x16) { | 1144 if (*data == 0x0B) { |
| 1145 data++; |
| 1146 int mod, regop, rm; |
| 1147 get_modrm(*data, &mod, ®op, &rm); |
| 1148 int8_t imm8 = static_cast<int8_t>(data[1]); |
| 1149 AppendToBuffer("roundsd %s,%s,%d", |
| 1150 NameOfXMMRegister(regop), |
| 1151 NameOfXMMRegister(rm), |
| 1152 static_cast<int>(imm8)); |
| 1153 data += 2; |
| 1154 } else if (*data == 0x16) { |
1145 data++; | 1155 data++; |
1146 int mod, regop, rm; | 1156 int mod, regop, rm; |
1147 get_modrm(*data, &mod, ®op, &rm); | 1157 get_modrm(*data, &mod, ®op, &rm); |
1148 int8_t imm8 = static_cast<int8_t>(data[1]); | 1158 int8_t imm8 = static_cast<int8_t>(data[1]); |
1149 AppendToBuffer("pextrd %s,%s,%d", | 1159 AppendToBuffer("pextrd %s,%s,%d", |
1150 NameOfCPURegister(regop), | 1160 NameOfCPURegister(regop), |
1151 NameOfXMMRegister(rm), | 1161 NameOfXMMRegister(rm), |
1152 static_cast<int>(imm8)); | 1162 static_cast<int>(imm8)); |
1153 data += 2; | 1163 data += 2; |
1154 } else if (*data == 0x22) { | 1164 } else if (*data == 0x22) { |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 fprintf(f, " "); | 1630 fprintf(f, " "); |
1621 } | 1631 } |
1622 fprintf(f, " %s\n", buffer.start()); | 1632 fprintf(f, " %s\n", buffer.start()); |
1623 } | 1633 } |
1624 } | 1634 } |
1625 | 1635 |
1626 | 1636 |
1627 } // namespace disasm | 1637 } // namespace disasm |
1628 | 1638 |
1629 #endif // V8_TARGET_ARCH_IA32 | 1639 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |