Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: src/ia32/disasm-ia32.cc

Issue 53573004: Introduce orps for IA32/X64 (Closed) Base URL: git://github.com/v8/v8.git@upstream
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 NameOfXMMRegister(rm)); 1043 NameOfXMMRegister(rm));
1044 data++; 1044 data++;
1045 } else if (f0byte == 0x54) { 1045 } else if (f0byte == 0x54) {
1046 data += 2; 1046 data += 2;
1047 int mod, regop, rm; 1047 int mod, regop, rm;
1048 get_modrm(*data, &mod, &regop, &rm); 1048 get_modrm(*data, &mod, &regop, &rm);
1049 AppendToBuffer("andps %s,%s", 1049 AppendToBuffer("andps %s,%s",
1050 NameOfXMMRegister(regop), 1050 NameOfXMMRegister(regop),
1051 NameOfXMMRegister(rm)); 1051 NameOfXMMRegister(rm));
1052 data++; 1052 data++;
1053 } else if (f0byte == 0x56) {
1054 data += 2;
1055 int mod, regop, rm;
1056 get_modrm(*data, &mod, &regop, &rm);
1057 AppendToBuffer("orps %s,%s",
1058 NameOfXMMRegister(regop),
1059 NameOfXMMRegister(rm));
1060 data++;
1053 } else if (f0byte == 0x57) { 1061 } else if (f0byte == 0x57) {
1054 data += 2; 1062 data += 2;
1055 int mod, regop, rm; 1063 int mod, regop, rm;
1056 get_modrm(*data, &mod, &regop, &rm); 1064 get_modrm(*data, &mod, &regop, &rm);
1057 AppendToBuffer("xorps %s,%s", 1065 AppendToBuffer("xorps %s,%s",
1058 NameOfXMMRegister(regop), 1066 NameOfXMMRegister(regop),
1059 NameOfXMMRegister(rm)); 1067 NameOfXMMRegister(rm));
1060 data++; 1068 data++;
1061 } else if (f0byte == 0x50) { 1069 } else if (f0byte == 0x50) {
1062 data += 2; 1070 data += 2;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 fprintf(f, " "); 1744 fprintf(f, " ");
1737 } 1745 }
1738 fprintf(f, " %s\n", buffer.start()); 1746 fprintf(f, " %s\n", buffer.start());
1739 } 1747 }
1740 } 1748 }
1741 1749
1742 1750
1743 } // namespace disasm 1751 } // namespace disasm
1744 1752
1745 #endif // V8_TARGET_ARCH_IA32 1753 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698