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

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

Issue 1421733003: [x64] Make MathMinMax use AVX instructions when available. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/macro-assembler-x64.h » ('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 // 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 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 break; 1233 break;
1234 case 0x50: 1234 case 0x50:
1235 AppendToBuffer("vmovmskpd %s,", NameOfCPURegister(regop)); 1235 AppendToBuffer("vmovmskpd %s,", NameOfCPURegister(regop));
1236 current += PrintRightXMMOperand(current); 1236 current += PrintRightXMMOperand(current);
1237 break; 1237 break;
1238 case 0x54: 1238 case 0x54:
1239 AppendToBuffer("vandpd %s,%s,", NameOfXMMRegister(regop), 1239 AppendToBuffer("vandpd %s,%s,", NameOfXMMRegister(regop),
1240 NameOfXMMRegister(vvvv)); 1240 NameOfXMMRegister(vvvv));
1241 current += PrintRightXMMOperand(current); 1241 current += PrintRightXMMOperand(current);
1242 break; 1242 break;
1243 case 0x56:
1244 AppendToBuffer("vorpd %s,%s,", NameOfXMMRegister(regop),
1245 NameOfXMMRegister(vvvv));
1246 current += PrintRightXMMOperand(current);
1247 break;
1243 case 0x57: 1248 case 0x57:
1244 AppendToBuffer("vxorpd %s,%s,", NameOfXMMRegister(regop), 1249 AppendToBuffer("vxorpd %s,%s,", NameOfXMMRegister(regop),
1245 NameOfXMMRegister(vvvv)); 1250 NameOfXMMRegister(vvvv));
1246 current += PrintRightXMMOperand(current); 1251 current += PrintRightXMMOperand(current);
1247 break; 1252 break;
1248 case 0x6e: 1253 case 0x6e:
1249 AppendToBuffer("vmov%c %s,", vex_w() ? 'q' : 'd', 1254 AppendToBuffer("vmov%c %s,", vex_w() ? 'q' : 'd',
1250 NameOfXMMRegister(regop)); 1255 NameOfXMMRegister(regop));
1251 current += PrintRightOperand(current); 1256 current += PrintRightOperand(current);
1252 break; 1257 break;
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2449 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 2454 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
2450 fprintf(f, " "); 2455 fprintf(f, " ");
2451 } 2456 }
2452 fprintf(f, " %s\n", buffer.start()); 2457 fprintf(f, " %s\n", buffer.start());
2453 } 2458 }
2454 } 2459 }
2455 2460
2456 } // namespace disasm 2461 } // namespace disasm
2457 2462
2458 #endif // V8_TARGET_ARCH_X64 2463 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698