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 8db0113df3f8195841934e87c6f9667acdf3d6fd..e4d8795f1b1716b99dbf385c2c9cb4b5f3d1a794 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -539,6 +539,17 @@ void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { |
} |
+void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
+ switch (TruncationModeOf(node->op())) { |
+ case TruncationMode::kJavaScript: |
+ return VisitRR(this, kArchTruncateDoubleToI, node); |
+ case TruncationMode::kRoundToZero: |
+ return VisitRR(this, kMips64TruncWD, node); |
+ } |
+ UNREACHABLE(); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat32Add(Node* node) { |
VisitRRR(this, kMips64AddS, node); |
} |