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

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

Issue 2263383002: PPC/s390: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed formating warning Created 4 years, 3 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 | « no previous file | src/compiler/s390/code-generator-s390.cc » ('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/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 } 1303 }
1304 1304
1305 1305
1306 void InstructionSelector::VisitFloat64Mod(Node* node) { 1306 void InstructionSelector::VisitFloat64Mod(Node* node) {
1307 PPCOperandGenerator g(this); 1307 PPCOperandGenerator g(this);
1308 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1), 1308 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1),
1309 g.UseFixed(node->InputAt(0), d1), 1309 g.UseFixed(node->InputAt(0), d1),
1310 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); 1310 g.UseFixed(node->InputAt(1), d2))->MarkAsCall();
1311 } 1311 }
1312 1312
1313 void InstructionSelector::VisitFloat32Max(Node* node) {
1314 VisitRRR(this, kPPC_MaxDouble | MiscField::encode(1), node);
1315 }
1313 1316
1314 void InstructionSelector::VisitFloat64Max(Node* node) { 1317 void InstructionSelector::VisitFloat64Max(Node* node) {
1315 VisitRRR(this, kPPC_MaxDouble, node); 1318 VisitRRR(this, kPPC_MaxDouble, node);
1316 } 1319 }
1317 1320
1318 1321
1319 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { 1322 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) {
1320 VisitRR(this, kPPC_Float64SilenceNaN, node); 1323 VisitRR(this, kPPC_Float64SilenceNaN, node);
1321 } 1324 }
1322 1325
1326 void InstructionSelector::VisitFloat32Min(Node* node) {
1327 VisitRRR(this, kPPC_MinDouble | MiscField::encode(1), node);
1328 }
1323 1329
1324 void InstructionSelector::VisitFloat64Min(Node* node) { 1330 void InstructionSelector::VisitFloat64Min(Node* node) {
1325 VisitRRR(this, kPPC_MinDouble, node); 1331 VisitRRR(this, kPPC_MinDouble, node);
1326 } 1332 }
1327 1333
1328 1334
1329 void InstructionSelector::VisitFloat32Abs(Node* node) { 1335 void InstructionSelector::VisitFloat32Abs(Node* node) {
1330 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node); 1336 VisitRR(this, kPPC_AbsDouble | MiscField::encode(1), node);
1331 } 1337 }
1332 1338
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2051 // static 2057 // static
2052 MachineOperatorBuilder::AlignmentRequirements 2058 MachineOperatorBuilder::AlignmentRequirements
2053 InstructionSelector::AlignmentRequirements() { 2059 InstructionSelector::AlignmentRequirements() {
2054 return MachineOperatorBuilder::AlignmentRequirements:: 2060 return MachineOperatorBuilder::AlignmentRequirements::
2055 FullUnalignedAccessSupport(); 2061 FullUnalignedAccessSupport();
2056 } 2062 }
2057 2063
2058 } // namespace compiler 2064 } // namespace compiler
2059 } // namespace internal 2065 } // namespace internal
2060 } // namespace v8 2066 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698