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

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

Issue 1411743003: [x64] Emit vcvtss2sd & vcvtsd2ss when AVX is enabled. (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/lithium-codegen-x64.cc » ('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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 case 0x58: 959 case 0x58:
960 AppendToBuffer("vaddss %s,%s,", NameOfXMMRegister(regop), 960 AppendToBuffer("vaddss %s,%s,", NameOfXMMRegister(regop),
961 NameOfXMMRegister(vvvv)); 961 NameOfXMMRegister(vvvv));
962 current += PrintRightXMMOperand(current); 962 current += PrintRightXMMOperand(current);
963 break; 963 break;
964 case 0x59: 964 case 0x59:
965 AppendToBuffer("vmulss %s,%s,", NameOfXMMRegister(regop), 965 AppendToBuffer("vmulss %s,%s,", NameOfXMMRegister(regop),
966 NameOfXMMRegister(vvvv)); 966 NameOfXMMRegister(vvvv));
967 current += PrintRightXMMOperand(current); 967 current += PrintRightXMMOperand(current);
968 break; 968 break;
969 case 0x5a:
970 AppendToBuffer("vcvtss2sd %s,%s,", NameOfXMMRegister(regop),
971 NameOfXMMRegister(vvvv));
972 current += PrintRightXMMOperand(current);
973 break;
969 case 0x5c: 974 case 0x5c:
970 AppendToBuffer("vsubss %s,%s,", NameOfXMMRegister(regop), 975 AppendToBuffer("vsubss %s,%s,", NameOfXMMRegister(regop),
971 NameOfXMMRegister(vvvv)); 976 NameOfXMMRegister(vvvv));
972 current += PrintRightXMMOperand(current); 977 current += PrintRightXMMOperand(current);
973 break; 978 break;
974 case 0x5d: 979 case 0x5d:
975 AppendToBuffer("vminss %s,%s,", NameOfXMMRegister(regop), 980 AppendToBuffer("vminss %s,%s,", NameOfXMMRegister(regop),
976 NameOfXMMRegister(vvvv)); 981 NameOfXMMRegister(vvvv));
977 current += PrintRightXMMOperand(current); 982 current += PrintRightXMMOperand(current);
978 break; 983 break;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 case 0x58: 1020 case 0x58:
1016 AppendToBuffer("vaddsd %s,%s,", NameOfXMMRegister(regop), 1021 AppendToBuffer("vaddsd %s,%s,", NameOfXMMRegister(regop),
1017 NameOfXMMRegister(vvvv)); 1022 NameOfXMMRegister(vvvv));
1018 current += PrintRightXMMOperand(current); 1023 current += PrintRightXMMOperand(current);
1019 break; 1024 break;
1020 case 0x59: 1025 case 0x59:
1021 AppendToBuffer("vmulsd %s,%s,", NameOfXMMRegister(regop), 1026 AppendToBuffer("vmulsd %s,%s,", NameOfXMMRegister(regop),
1022 NameOfXMMRegister(vvvv)); 1027 NameOfXMMRegister(vvvv));
1023 current += PrintRightXMMOperand(current); 1028 current += PrintRightXMMOperand(current);
1024 break; 1029 break;
1030 case 0x5a:
1031 AppendToBuffer("vcvtsd2ss %s,%s,", NameOfXMMRegister(regop),
1032 NameOfXMMRegister(vvvv));
1033 current += PrintRightXMMOperand(current);
1034 break;
1025 case 0x5c: 1035 case 0x5c:
1026 AppendToBuffer("vsubsd %s,%s,", NameOfXMMRegister(regop), 1036 AppendToBuffer("vsubsd %s,%s,", NameOfXMMRegister(regop),
1027 NameOfXMMRegister(vvvv)); 1037 NameOfXMMRegister(vvvv));
1028 current += PrintRightXMMOperand(current); 1038 current += PrintRightXMMOperand(current);
1029 break; 1039 break;
1030 case 0x5d: 1040 case 0x5d:
1031 AppendToBuffer("vminsd %s,%s,", NameOfXMMRegister(regop), 1041 AppendToBuffer("vminsd %s,%s,", NameOfXMMRegister(regop),
1032 NameOfXMMRegister(vvvv)); 1042 NameOfXMMRegister(vvvv));
1033 current += PrintRightXMMOperand(current); 1043 current += PrintRightXMMOperand(current);
1034 break; 1044 break;
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 2404 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
2395 fprintf(f, " "); 2405 fprintf(f, " ");
2396 } 2406 }
2397 fprintf(f, " %s\n", buffer.start()); 2407 fprintf(f, " %s\n", buffer.start());
2398 } 2408 }
2399 } 2409 }
2400 2410
2401 } // namespace disasm 2411 } // namespace disasm
2402 2412
2403 #endif // V8_TARGET_ARCH_X64 2413 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698