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

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

Issue 1709793002: MIPS: [turbofan] Add RoundUint32ToFloat32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unused var. Created 4 years, 10 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
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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 __ mtc1(i.InputRegister(0), scratch); 1208 __ mtc1(i.InputRegister(0), scratch);
1209 __ cvt_d_w(i.OutputDoubleRegister(), scratch); 1209 __ cvt_d_w(i.OutputDoubleRegister(), scratch);
1210 break; 1210 break;
1211 } 1211 }
1212 case kMips64CvtSW: { 1212 case kMips64CvtSW: {
1213 FPURegister scratch = kScratchDoubleReg; 1213 FPURegister scratch = kScratchDoubleReg;
1214 __ mtc1(i.InputRegister(0), scratch); 1214 __ mtc1(i.InputRegister(0), scratch);
1215 __ cvt_s_w(i.OutputDoubleRegister(), scratch); 1215 __ cvt_s_w(i.OutputDoubleRegister(), scratch);
1216 break; 1216 break;
1217 } 1217 }
1218 case kMips64CvtSUw: {
1219 __ Cvt_s_uw(i.OutputDoubleRegister(), i.InputRegister(0));
1220 break;
1221 }
1218 case kMips64CvtSL: { 1222 case kMips64CvtSL: {
1219 FPURegister scratch = kScratchDoubleReg; 1223 FPURegister scratch = kScratchDoubleReg;
1220 __ dmtc1(i.InputRegister(0), scratch); 1224 __ dmtc1(i.InputRegister(0), scratch);
1221 __ cvt_s_l(i.OutputDoubleRegister(), scratch); 1225 __ cvt_s_l(i.OutputDoubleRegister(), scratch);
1222 break; 1226 break;
1223 } 1227 }
1224 case kMips64CvtDL: { 1228 case kMips64CvtDL: {
1225 FPURegister scratch = kScratchDoubleReg; 1229 FPURegister scratch = kScratchDoubleReg;
1226 __ dmtc1(i.InputRegister(0), scratch); 1230 __ dmtc1(i.InputRegister(0), scratch);
1227 __ cvt_d_l(i.OutputDoubleRegister(), scratch); 1231 __ cvt_d_l(i.OutputDoubleRegister(), scratch);
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 padding_size -= v8::internal::Assembler::kInstrSize; 2121 padding_size -= v8::internal::Assembler::kInstrSize;
2118 } 2122 }
2119 } 2123 }
2120 } 2124 }
2121 2125
2122 #undef __ 2126 #undef __
2123 2127
2124 } // namespace compiler 2128 } // namespace compiler
2125 } // namespace internal 2129 } // namespace internal
2126 } // namespace v8 2130 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698