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

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

Issue 1413013003: [x64] Implement vcvtqsi2sd AVX instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/x64/assembler-x64.cc ('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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 break; 1035 break;
1036 case 0x11: 1036 case 0x11:
1037 AppendToBuffer("vmovsd "); 1037 AppendToBuffer("vmovsd ");
1038 current += PrintRightXMMOperand(current); 1038 current += PrintRightXMMOperand(current);
1039 if (mod == 3) { 1039 if (mod == 3) {
1040 AppendToBuffer(",%s", NameOfXMMRegister(vvvv)); 1040 AppendToBuffer(",%s", NameOfXMMRegister(vvvv));
1041 } 1041 }
1042 AppendToBuffer(",%s", NameOfXMMRegister(regop)); 1042 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1043 break; 1043 break;
1044 case 0x2a: 1044 case 0x2a:
1045 AppendToBuffer("vcvtlsi2sd %s,%s,", NameOfXMMRegister(regop), 1045 AppendToBuffer("%s %s,%s,", vex_w() ? "vcvtqsi2sd" : "vcvtlsi2sd",
1046 NameOfXMMRegister(vvvv)); 1046 NameOfXMMRegister(regop), NameOfXMMRegister(vvvv));
1047 current += PrintRightOperand(current); 1047 current += PrintRightOperand(current);
1048 break; 1048 break;
1049 case 0x2c: 1049 case 0x2c:
1050 AppendToBuffer("vcvttsd2si%s %s,", vex_w() ? "q" : "", 1050 AppendToBuffer("vcvttsd2si%s %s,", vex_w() ? "q" : "",
1051 NameOfCPURegister(regop)); 1051 NameOfCPURegister(regop));
1052 current += PrintRightXMMOperand(current); 1052 current += PrintRightXMMOperand(current);
1053 break; 1053 break;
1054 case 0x51: 1054 case 0x51:
1055 AppendToBuffer("vsqrtsd %s,%s,", NameOfXMMRegister(regop), 1055 AppendToBuffer("vsqrtsd %s,%s,", NameOfXMMRegister(regop),
1056 NameOfXMMRegister(vvvv)); 1056 NameOfXMMRegister(vvvv));
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 2480 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
2481 fprintf(f, " "); 2481 fprintf(f, " ");
2482 } 2482 }
2483 fprintf(f, " %s\n", buffer.start()); 2483 fprintf(f, " %s\n", buffer.start());
2484 } 2484 }
2485 } 2485 }
2486 2486
2487 } // namespace disasm 2487 } // namespace disasm
2488 2488
2489 #endif // V8_TARGET_ARCH_X64 2489 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698