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

Side by Side Diff: src/compiler/mips64/code-generator-mips64.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/machine-operator.cc ('k') | src/compiler/mips64/instruction-codes-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/code-generator-impl.h" 6 #include "src/compiler/code-generator-impl.h"
7 #include "src/compiler/gap-resolver.h" 7 #include "src/compiler/gap-resolver.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/osr.h" 9 #include "src/compiler/osr.h"
10 #include "src/mips/macro-assembler-mips.h" 10 #include "src/mips/macro-assembler-mips.h"
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 break; 953 break;
954 } 954 }
955 case kMips64CvtDUw: { 955 case kMips64CvtDUw: {
956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0)); 956 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0));
957 break; 957 break;
958 } 958 }
959 case kMips64CvtDUl: { 959 case kMips64CvtDUl: {
960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0)); 960 __ Cvt_d_ul(i.OutputDoubleRegister(), i.InputRegister(0));
961 break; 961 break;
962 } 962 }
963 case kMips64CvtSUl: {
964 __ Cvt_s_ul(i.OutputDoubleRegister(), i.InputRegister(0));
965 break;
966 }
963 case kMips64TruncWD: { 967 case kMips64TruncWD: {
964 FPURegister scratch = kScratchDoubleReg; 968 FPURegister scratch = kScratchDoubleReg;
965 // Other arches use round to zero here, so we follow. 969 // Other arches use round to zero here, so we follow.
966 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); 970 __ trunc_w_d(scratch, i.InputDoubleRegister(0));
967 __ mfc1(i.OutputRegister(), scratch); 971 __ mfc1(i.OutputRegister(), scratch);
968 break; 972 break;
969 } 973 }
970 case kMips64TruncUwD: { 974 case kMips64TruncUwD: {
971 FPURegister scratch = kScratchDoubleReg; 975 FPURegister scratch = kScratchDoubleReg;
972 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. 976 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function.
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 padding_size -= v8::internal::Assembler::kInstrSize; 1691 padding_size -= v8::internal::Assembler::kInstrSize;
1688 } 1692 }
1689 } 1693 }
1690 } 1694 }
1691 1695
1692 #undef __ 1696 #undef __
1693 1697
1694 } // namespace compiler 1698 } // namespace compiler
1695 } // namespace internal 1699 } // namespace internal
1696 } // namespace v8 1700 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698