Index: src/compiler/arm/instruction-selector-arm.cc |
diff --git a/src/compiler/arm/instruction-selector-arm.cc b/src/compiler/arm/instruction-selector-arm.cc |
index d9f8f8b1de5bdf92010aaff3c02f4d759909da0a..885538804830594c3ab7529a16ee492cd20dc7f4 100644 |
--- a/src/compiler/arm/instruction-selector-arm.cc |
+++ b/src/compiler/arm/instruction-selector-arm.cc |
@@ -914,6 +914,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, kArmVcvtS32F64, node); |
+ } |
+ UNREACHABLE(); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat32Add(Node* node) { |
ArmOperandGenerator g(this); |
Float32BinopMatcher m(node); |