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

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

Issue 10937013: Fixed minus zero test (fixes v8:2133). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed tab. Created 8 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | test/mjsunit/deopt-minus-zero.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 } else if (*data == 0x70) { 1298 } else if (*data == 0x70) {
1299 data++; 1299 data++;
1300 int mod, regop, rm; 1300 int mod, regop, rm;
1301 get_modrm(*data, &mod, &regop, &rm); 1301 get_modrm(*data, &mod, &regop, &rm);
1302 int8_t imm8 = static_cast<int8_t>(data[1]); 1302 int8_t imm8 = static_cast<int8_t>(data[1]);
1303 AppendToBuffer("pshufd %s,%s,%d", 1303 AppendToBuffer("pshufd %s,%s,%d",
1304 NameOfXMMRegister(regop), 1304 NameOfXMMRegister(regop),
1305 NameOfXMMRegister(rm), 1305 NameOfXMMRegister(rm),
1306 static_cast<int>(imm8)); 1306 static_cast<int>(imm8));
1307 data += 2; 1307 data += 2;
1308 } else if (*data == 0x76) {
1309 data++;
1310 int mod, regop, rm;
1311 get_modrm(*data, &mod, &regop, &rm);
1312 AppendToBuffer("pcmpeqd %s,%s",
1313 NameOfXMMRegister(regop),
1314 NameOfXMMRegister(rm));
1315 data++;
1308 } else if (*data == 0x90) { 1316 } else if (*data == 0x90) {
1309 data++; 1317 data++;
1310 AppendToBuffer("nop"); // 2 byte nop. 1318 AppendToBuffer("nop"); // 2 byte nop.
1311 } else if (*data == 0xF3) { 1319 } else if (*data == 0xF3) {
1312 data++; 1320 data++;
1313 int mod, regop, rm; 1321 int mod, regop, rm;
1314 get_modrm(*data, &mod, &regop, &rm); 1322 get_modrm(*data, &mod, &regop, &rm);
1315 AppendToBuffer("psllq %s,%s", 1323 AppendToBuffer("psllq %s,%s",
1316 NameOfXMMRegister(regop), 1324 NameOfXMMRegister(regop),
1317 NameOfXMMRegister(rm)); 1325 NameOfXMMRegister(rm));
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 fprintf(f, " "); 1708 fprintf(f, " ");
1701 } 1709 }
1702 fprintf(f, " %s\n", buffer.start()); 1710 fprintf(f, " %s\n", buffer.start());
1703 } 1711 }
1704 } 1712 }
1705 1713
1706 1714
1707 } // namespace disasm 1715 } // namespace disasm
1708 1716
1709 #endif // V8_TARGET_ARCH_IA32 1717 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | test/mjsunit/deopt-minus-zero.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698