Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index 846d0fc34187c5b591c82f640fdd98a9e5d387b4..f298c01f1d43cada350d3a4b7d74208a119081dc 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -871,6 +871,11 @@ void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
} |
+void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { |
+ VisitRR(this, node, kSSEFloat32Round | MiscField::encode(kRoundToZero)); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); |
} |
@@ -1298,6 +1303,7 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kFloat64RoundDown | |
MachineOperatorBuilder::kFloat32RoundUp | |
MachineOperatorBuilder::kFloat64RoundUp | |
+ MachineOperatorBuilder::kFloat32RoundTruncate | |
MachineOperatorBuilder::kFloat64RoundTruncate | |
MachineOperatorBuilder::kFloat64RoundTiesEven; |
} |