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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 1438013003: [turbofan] Implemented the RoundUint64ToFloat32 TurboFan operator for x64, arm64, (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reformated the test 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/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0)); 1034 __ Cvtqsi2ss(i.OutputDoubleRegister(), i.InputOperand(0));
1035 } 1035 }
1036 break; 1036 break;
1037 case kSSEInt64ToFloat64: 1037 case kSSEInt64ToFloat64:
1038 if (instr->InputAt(0)->IsRegister()) { 1038 if (instr->InputAt(0)->IsRegister()) {
1039 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0)); 1039 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputRegister(0));
1040 } else { 1040 } else {
1041 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0)); 1041 __ Cvtqsi2sd(i.OutputDoubleRegister(), i.InputOperand(0));
1042 } 1042 }
1043 break; 1043 break;
1044 case kSSEUint64ToFloat32:
1045 if (instr->InputAt(0)->IsRegister()) {
1046 __ movq(kScratchRegister, i.InputRegister(0));
1047 } else {
1048 __ movq(kScratchRegister, i.InputOperand(0));
1049 }
1050 __ Cvtqui2ss(i.OutputDoubleRegister(), kScratchRegister,
1051 i.TempRegister(0));
1052 break;
1044 case kSSEUint64ToFloat64: 1053 case kSSEUint64ToFloat64:
1045 if (instr->InputAt(0)->IsRegister()) { 1054 if (instr->InputAt(0)->IsRegister()) {
1046 __ movq(kScratchRegister, i.InputRegister(0)); 1055 __ movq(kScratchRegister, i.InputRegister(0));
1047 } else { 1056 } else {
1048 __ movq(kScratchRegister, i.InputOperand(0)); 1057 __ movq(kScratchRegister, i.InputOperand(0));
1049 } 1058 }
1050 __ Cvtqui2sd(i.OutputDoubleRegister(), kScratchRegister, 1059 __ Cvtqui2sd(i.OutputDoubleRegister(), kScratchRegister,
1051 i.TempRegister(0)); 1060 i.TempRegister(0));
1052 break; 1061 break;
1053 case kSSEUint32ToFloat64: 1062 case kSSEUint32ToFloat64:
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1933 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1925 __ Nop(padding_size); 1934 __ Nop(padding_size);
1926 } 1935 }
1927 } 1936 }
1928 1937
1929 #undef __ 1938 #undef __
1930 1939
1931 } // namespace compiler 1940 } // namespace compiler
1932 } // namespace internal 1941 } // namespace internal
1933 } // namespace v8 1942 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698