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

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

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Fixed the type of RoundInt64ToFloat64 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 break; 791 break;
792 case kMips64CvtDS: 792 case kMips64CvtDS:
793 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); 793 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0));
794 break; 794 break;
795 case kMips64CvtDW: { 795 case kMips64CvtDW: {
796 FPURegister scratch = kScratchDoubleReg; 796 FPURegister scratch = kScratchDoubleReg;
797 __ mtc1(i.InputRegister(0), scratch); 797 __ mtc1(i.InputRegister(0), scratch);
798 __ cvt_d_w(i.OutputDoubleRegister(), scratch); 798 __ cvt_d_w(i.OutputDoubleRegister(), scratch);
799 break; 799 break;
800 } 800 }
801 case kMips64CvtDL: {
802 FPURegister scratch = kScratchDoubleReg;
803 __ dmtc1(i.InputRegister(0), scratch);
804 __ cvt_d_l(i.OutputDoubleRegister(), scratch);
805 break;
806 }
801 case kMips64CvtDUw: { 807 case kMips64CvtDUw: {
802 FPURegister scratch = kScratchDoubleReg; 808 FPURegister scratch = kScratchDoubleReg;
803 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); 809 __ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch);
804 break; 810 break;
805 } 811 }
806 case kMips64TruncWD: { 812 case kMips64TruncWD: {
807 FPURegister scratch = kScratchDoubleReg; 813 FPURegister scratch = kScratchDoubleReg;
808 // Other arches use round to zero here, so we follow. 814 // Other arches use round to zero here, so we follow.
809 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); 815 __ trunc_w_d(scratch, i.InputDoubleRegister(0));
810 __ mfc1(i.OutputRegister(), scratch); 816 __ mfc1(i.OutputRegister(), scratch);
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 padding_size -= v8::internal::Assembler::kInstrSize; 1548 padding_size -= v8::internal::Assembler::kInstrSize;
1543 } 1549 }
1544 } 1550 }
1545 } 1551 }
1546 1552
1547 #undef __ 1553 #undef __
1548 1554
1549 } // namespace compiler 1555 } // namespace compiler
1550 } // namespace internal 1556 } // namespace internal
1551 } // namespace v8 1557 } // 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