Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index c98d871204573e36e66cbcec12e80cc1c7e2d2fe..09abb7a354a7ef6ce3eff9c7acf4b86f79240ecc 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -981,7 +981,9 @@ void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
} |
-void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } |
+void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
+ VisitRR(this, kMips64Float32RoundDown, node); |
+} |
void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
@@ -989,7 +991,9 @@ void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
} |
-void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); } |
+void InstructionSelector::VisitFloat32RoundUp(Node* node) { |
+ VisitRR(this, kMips64Float32RoundUp, node); |
+} |
void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
@@ -998,7 +1002,7 @@ void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { |
- UNREACHABLE(); |
+ VisitRR(this, kMips64Float32RoundTruncate, node); |
} |
@@ -1013,7 +1017,7 @@ void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { |
- UNREACHABLE(); |
+ VisitRR(this, kMips64Float32RoundTiesEven, node); |
} |
@@ -1602,9 +1606,13 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kFloat32Min | |
MachineOperatorBuilder::kFloat32Max | |
MachineOperatorBuilder::kFloat64RoundDown | |
+ MachineOperatorBuilder::kFloat32RoundDown | |
MachineOperatorBuilder::kFloat64RoundUp | |
+ MachineOperatorBuilder::kFloat32RoundUp | |
MachineOperatorBuilder::kFloat64RoundTruncate | |
- MachineOperatorBuilder::kFloat64RoundTiesEven; |
+ MachineOperatorBuilder::kFloat32RoundTruncate | |
+ MachineOperatorBuilder::kFloat64RoundTiesEven | |
+ MachineOperatorBuilder::kFloat32RoundTiesEven; |
} |
} // namespace compiler |