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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.cc

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type is number now. Created 4 years, 4 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/compiler/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 } 1205 }
1206 1206
1207 1207
1208 void InstructionSelector::VisitFloat64Mod(Node* node) { 1208 void InstructionSelector::VisitFloat64Mod(Node* node) {
1209 Mips64OperandGenerator g(this); 1209 Mips64OperandGenerator g(this);
1210 Emit(kMips64ModD, g.DefineAsFixed(node, f0), 1210 Emit(kMips64ModD, g.DefineAsFixed(node, f0),
1211 g.UseFixed(node->InputAt(0), f12), 1211 g.UseFixed(node->InputAt(0), f12),
1212 g.UseFixed(node->InputAt(1), f14))->MarkAsCall(); 1212 g.UseFixed(node->InputAt(1), f14))->MarkAsCall();
1213 } 1213 }
1214 1214
1215 void InstructionSelector::VisitFloat32Max(Node* node) {
1216 Mips64OperandGenerator g(this);
1217 Emit(kMips64Float32Max, g.DefineAsRegister(node),
1218 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)));
1219 }
1215 1220
1216 void InstructionSelector::VisitFloat64Max(Node* node) { 1221 void InstructionSelector::VisitFloat64Max(Node* node) {
1217 Mips64OperandGenerator g(this); 1222 Mips64OperandGenerator g(this);
1218 Emit(kMips64Float64Max, g.DefineAsRegister(node), 1223 Emit(kMips64Float64Max, g.DefineAsRegister(node),
1219 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); 1224 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)));
1220 } 1225 }
1221 1226
1227 void InstructionSelector::VisitFloat32Min(Node* node) {
1228 Mips64OperandGenerator g(this);
1229 Emit(kMips64Float32Min, g.DefineAsRegister(node),
1230 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)));
1231 }
1222 1232
1223 void InstructionSelector::VisitFloat64Min(Node* node) { 1233 void InstructionSelector::VisitFloat64Min(Node* node) {
1224 Mips64OperandGenerator g(this); 1234 Mips64OperandGenerator g(this);
1225 Emit(kMips64Float64Min, g.DefineAsRegister(node), 1235 Emit(kMips64Float64Min, g.DefineAsRegister(node),
1226 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); 1236 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)));
1227 } 1237 }
1228 1238
1229 1239
1230 void InstructionSelector::VisitFloat32Abs(Node* node) { 1240 void InstructionSelector::VisitFloat32Abs(Node* node) {
1231 VisitRR(this, kMips64AbsS, node); 1241 VisitRR(this, kMips64AbsS, node);
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 } else { 2169 } else {
2160 DCHECK(kArchVariant == kMips64r2); 2170 DCHECK(kArchVariant == kMips64r2);
2161 return MachineOperatorBuilder::AlignmentRequirements:: 2171 return MachineOperatorBuilder::AlignmentRequirements::
2162 NoUnalignedAccessSupport(); 2172 NoUnalignedAccessSupport();
2163 } 2173 }
2164 } 2174 }
2165 2175
2166 } // namespace compiler 2176 } // namespace compiler
2167 } // namespace internal 2177 } // namespace internal
2168 } // namespace v8 2178 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698