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 b2f4c06a1eb175af2acbba5404b2eb1eeca9c94c..4992cf77b0ad6bef376fe9909a3f2869ed12dad3 100644 |
--- a/src/compiler/ppc/instruction-selector-ppc.cc |
+++ b/src/compiler/ppc/instruction-selector-ppc.cc |
@@ -1015,6 +1015,11 @@ void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { |
} |
+void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { |
+ return VisitRR(this, kPPC_DoubleToInt32, node); |
+} |
+ |
+ |
#if V8_TARGET_ARCH_PPC64 |
void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) { |
// TODO(mbrandy): inspect input to see if nop is appropriate. |