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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 AppendToBuffer("%s", f0mnem); | 1035 AppendToBuffer("%s", f0mnem); |
1036 data += 2; | 1036 data += 2; |
1037 } else if (f0byte == 0x28) { | 1037 } else if (f0byte == 0x28) { |
1038 data += 2; | 1038 data += 2; |
1039 int mod, regop, rm; | 1039 int mod, regop, rm; |
1040 get_modrm(*data, &mod, ®op, &rm); | 1040 get_modrm(*data, &mod, ®op, &rm); |
1041 AppendToBuffer("movaps %s,%s", | 1041 AppendToBuffer("movaps %s,%s", |
1042 NameOfXMMRegister(regop), | 1042 NameOfXMMRegister(regop), |
1043 NameOfXMMRegister(rm)); | 1043 NameOfXMMRegister(rm)); |
1044 data++; | 1044 data++; |
| 1045 } else if (f0byte == 0x54) { |
| 1046 data += 2; |
| 1047 int mod, regop, rm; |
| 1048 get_modrm(*data, &mod, ®op, &rm); |
| 1049 AppendToBuffer("andps %s,%s", |
| 1050 NameOfXMMRegister(regop), |
| 1051 NameOfXMMRegister(rm)); |
| 1052 data++; |
1045 } else if (f0byte == 0x57) { | 1053 } else if (f0byte == 0x57) { |
1046 data += 2; | 1054 data += 2; |
1047 int mod, regop, rm; | 1055 int mod, regop, rm; |
1048 get_modrm(*data, &mod, ®op, &rm); | 1056 get_modrm(*data, &mod, ®op, &rm); |
1049 AppendToBuffer("xorps %s,%s", | 1057 AppendToBuffer("xorps %s,%s", |
1050 NameOfXMMRegister(regop), | 1058 NameOfXMMRegister(regop), |
1051 NameOfXMMRegister(rm)); | 1059 NameOfXMMRegister(rm)); |
1052 data++; | 1060 data++; |
1053 } else if (f0byte == 0x50) { | 1061 } else if (f0byte == 0x50) { |
1054 data += 2; | 1062 data += 2; |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 fprintf(f, " "); | 1736 fprintf(f, " "); |
1729 } | 1737 } |
1730 fprintf(f, " %s\n", buffer.start()); | 1738 fprintf(f, " %s\n", buffer.start()); |
1731 } | 1739 } |
1732 } | 1740 } |
1733 | 1741 |
1734 | 1742 |
1735 } // namespace disasm | 1743 } // namespace disasm |
1736 | 1744 |
1737 #endif // V8_TARGET_ARCH_IA32 | 1745 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |