Index: src/compiler/ppc/instruction-selector-ppc.cc |
diff --git a/src/compiler/ppc/instruction-selector-ppc.cc b/src/compiler/ppc/instruction-selector-ppc.cc |
index cf78cdea65da1b3715b259f46f72772edeb1b816..19476bd86fef6e803fc30ac9613b55a4c18d42c7 100644 |
--- a/src/compiler/ppc/instruction-selector-ppc.cc |
+++ b/src/compiler/ppc/instruction-selector-ppc.cc |
@@ -995,10 +995,14 @@ void InstructionSelector::VisitFloat64Min(Node* node) { |
} |
-void InstructionSelector::VisitFloat32Abs(Node* node) { UNREACHABLE(); } |
+void InstructionSelector::VisitFloat32Abs(Node* node) { |
+ VisitRR(this, kPPC_AbsDouble, node); |
+} |
-void InstructionSelector::VisitFloat64Abs(Node* node) { UNREACHABLE(); } |
+void InstructionSelector::VisitFloat64Abs(Node* node) { |
+ VisitRR(this, kPPC_AbsDouble, node); |
+} |
void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
@@ -1536,8 +1540,10 @@ void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
// static |
MachineOperatorBuilder::Flags |
InstructionSelector::SupportedMachineOperatorFlags() { |
- return MachineOperatorBuilder::kFloat32Max | |
+ return MachineOperatorBuilder::kFloat32Abs | |
+ MachineOperatorBuilder::kFloat32Max | |
MachineOperatorBuilder::kFloat32Min | |
+ MachineOperatorBuilder::kFloat64Abs | |
MachineOperatorBuilder::kFloat64Max | |
MachineOperatorBuilder::kFloat64Min | |
MachineOperatorBuilder::kFloat64RoundDown | |