OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 get_modrm(*data, &mod, ®op, &rm); | 1634 get_modrm(*data, &mod, ®op, &rm); |
1635 int8_t imm8 = static_cast<int8_t>(data[1]); | 1635 int8_t imm8 = static_cast<int8_t>(data[1]); |
1636 AppendToBuffer("roundsd %s,%s,%d", | 1636 AppendToBuffer("roundsd %s,%s,%d", |
1637 NameOfXMMRegister(regop), | 1637 NameOfXMMRegister(regop), |
1638 NameOfXMMRegister(rm), | 1638 NameOfXMMRegister(rm), |
1639 static_cast<int>(imm8)); | 1639 static_cast<int>(imm8)); |
1640 data += 2; | 1640 data += 2; |
1641 } else if (*data == 0x16) { | 1641 } else if (*data == 0x16) { |
1642 data++; | 1642 data++; |
1643 int mod, regop, rm; | 1643 int mod, regop, rm; |
1644 get_modrm(*data, &mod, ®op, &rm); | 1644 get_modrm(*data, &mod, &rm, ®op); |
1645 int8_t imm8 = static_cast<int8_t>(data[1]); | 1645 int8_t imm8 = static_cast<int8_t>(data[1]); |
1646 AppendToBuffer("pextrd %s,%s,%d", | 1646 AppendToBuffer("pextrd %s,%s,%d", |
1647 NameOfCPURegister(regop), | 1647 NameOfCPURegister(regop), |
1648 NameOfXMMRegister(rm), | 1648 NameOfXMMRegister(rm), |
1649 static_cast<int>(imm8)); | 1649 static_cast<int>(imm8)); |
1650 data += 2; | 1650 data += 2; |
1651 } else if (*data == 0x17) { | 1651 } else if (*data == 0x17) { |
1652 data++; | 1652 data++; |
1653 int mod, regop, rm; | 1653 int mod, regop, rm; |
1654 get_modrm(*data, &mod, ®op, &rm); | 1654 get_modrm(*data, &mod, ®op, &rm); |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2252 fprintf(f, " "); | 2252 fprintf(f, " "); |
2253 } | 2253 } |
2254 fprintf(f, " %s\n", buffer.start()); | 2254 fprintf(f, " %s\n", buffer.start()); |
2255 } | 2255 } |
2256 } | 2256 } |
2257 | 2257 |
2258 | 2258 |
2259 } // namespace disasm | 2259 } // namespace disasm |
2260 | 2260 |
2261 #endif // V8_TARGET_ARCH_IA32 | 2261 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |