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

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

Issue 1005693002: PPC: [turbofan] Introduce optional Float64Min and Float64Max machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | no next file » | 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/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 956
957 957
958 void InstructionSelector::VisitFloat64Mod(Node* node) { 958 void InstructionSelector::VisitFloat64Mod(Node* node) {
959 PPCOperandGenerator g(this); 959 PPCOperandGenerator g(this);
960 Emit(kPPC_ModFloat64, g.DefineAsFixed(node, d1), 960 Emit(kPPC_ModFloat64, g.DefineAsFixed(node, d1),
961 g.UseFixed(node->InputAt(0), d1), 961 g.UseFixed(node->InputAt(0), d1),
962 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); 962 g.UseFixed(node->InputAt(1), d2))->MarkAsCall();
963 } 963 }
964 964
965 965
966 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); }
967
968
969 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); }
970
971
966 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 972 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
967 VisitRRFloat64(this, kPPC_SqrtFloat64, node); 973 VisitRRFloat64(this, kPPC_SqrtFloat64, node);
968 } 974 }
969 975
970 976
971 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 977 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
972 VisitRRFloat64(this, kPPC_FloorFloat64, node); 978 VisitRRFloat64(this, kPPC_FloorFloat64, node);
973 } 979 }
974 980
975 981
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 InstructionSelector::SupportedMachineOperatorFlags() { 1493 InstructionSelector::SupportedMachineOperatorFlags() {
1488 return MachineOperatorBuilder::kFloat64RoundDown | 1494 return MachineOperatorBuilder::kFloat64RoundDown |
1489 MachineOperatorBuilder::kFloat64RoundTruncate | 1495 MachineOperatorBuilder::kFloat64RoundTruncate |
1490 MachineOperatorBuilder::kFloat64RoundTiesAway; 1496 MachineOperatorBuilder::kFloat64RoundTiesAway;
1491 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1497 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1492 } 1498 }
1493 1499
1494 } // namespace compiler 1500 } // namespace compiler
1495 } // namespace internal 1501 } // namespace internal
1496 } // namespace v8 1502 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698