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

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

Issue 1193843015: PPC: [turbofan] Fix implementation of Float64Min. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 969
970 970
971 void InstructionSelector::VisitFloat64Mod(Node* node) { 971 void InstructionSelector::VisitFloat64Mod(Node* node) {
972 PPCOperandGenerator g(this); 972 PPCOperandGenerator g(this);
973 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1), 973 Emit(kPPC_ModDouble, g.DefineAsFixed(node, d1),
974 g.UseFixed(node->InputAt(0), d1), 974 g.UseFixed(node->InputAt(0), d1),
975 g.UseFixed(node->InputAt(1), d2))->MarkAsCall(); 975 g.UseFixed(node->InputAt(1), d2))->MarkAsCall();
976 } 976 }
977 977
978 978
979 void InstructionSelector::VisitFloat32Max(Node* node) { 979 void InstructionSelector::VisitFloat32Max(Node* node) { UNREACHABLE(); }
980 VisitRRR(this, kPPC_MaxDouble, node);
981 }
982 980
983 981
984 void InstructionSelector::VisitFloat64Max(Node* node) { 982 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); }
985 VisitRRR(this, kPPC_MaxDouble, node);
986 }
987 983
988 984
989 void InstructionSelector::VisitFloat32Min(Node* node) { 985 void InstructionSelector::VisitFloat32Min(Node* node) { UNREACHABLE(); }
990 VisitRRR(this, kPPC_MinDouble, node);
991 }
992 986
993 987
994 void InstructionSelector::VisitFloat64Min(Node* node) { 988 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); }
995 VisitRRR(this, kPPC_MinDouble, node);
996 }
997 989
998 990
999 void InstructionSelector::VisitFloat32Abs(Node* node) { 991 void InstructionSelector::VisitFloat32Abs(Node* node) {
1000 VisitRR(this, kPPC_AbsDouble, node); 992 VisitRR(this, kPPC_AbsDouble, node);
1001 } 993 }
1002 994
1003 995
1004 void InstructionSelector::VisitFloat64Abs(Node* node) { 996 void InstructionSelector::VisitFloat64Abs(Node* node) {
1005 VisitRR(this, kPPC_AbsDouble, node); 997 VisitRR(this, kPPC_AbsDouble, node);
1006 } 998 }
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 return; 1613 return;
1622 } 1614 }
1623 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node), 1615 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node),
1624 g.UseRegister(left), g.UseRegister(right)); 1616 g.UseRegister(left), g.UseRegister(right));
1625 } 1617 }
1626 1618
1627 1619
1628 // static 1620 // static
1629 MachineOperatorBuilder::Flags 1621 MachineOperatorBuilder::Flags
1630 InstructionSelector::SupportedMachineOperatorFlags() { 1622 InstructionSelector::SupportedMachineOperatorFlags() {
1631 return MachineOperatorBuilder::kFloat32Max | 1623 return MachineOperatorBuilder::kFloat64RoundDown |
1632 MachineOperatorBuilder::kFloat32Min |
1633 MachineOperatorBuilder::kFloat64Max |
1634 MachineOperatorBuilder::kFloat64Min |
1635 MachineOperatorBuilder::kFloat64RoundDown |
1636 MachineOperatorBuilder::kFloat64RoundTruncate | 1624 MachineOperatorBuilder::kFloat64RoundTruncate |
1637 MachineOperatorBuilder::kFloat64RoundTiesAway; 1625 MachineOperatorBuilder::kFloat64RoundTiesAway;
1638 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1626 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1639 } 1627 }
1640 1628
1641 } // namespace compiler 1629 } // namespace compiler
1642 } // namespace internal 1630 } // namespace internal
1643 } // namespace v8 1631 } // 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