Index: src/compiler/x87/instruction-selector-x87.cc |
diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc |
index e613726e6df6c09369c1b28e40258ddfc8c2264c..f65baecb7ab3e2bf773e169d7bb40bbf124604d8 100644 |
--- a/src/compiler/x87/instruction-selector-x87.cc |
+++ b/src/compiler/x87/instruction-selector-x87.cc |
@@ -890,7 +890,9 @@ void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { |
void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { |
- UNREACHABLE(); |
+ X87OperandGenerator g(this); |
+ Emit(kX87Float32Round | MiscField::encode(kRoundToNearest), |
+ g.UseFixed(node, stX_0), g.Use(node->InputAt(0))); |
} |
@@ -1323,6 +1325,7 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kFloat64RoundUp | |
MachineOperatorBuilder::kFloat32RoundTruncate | |
MachineOperatorBuilder::kFloat64RoundTruncate | |
+ MachineOperatorBuilder::kFloat32RoundTiesEven | |
MachineOperatorBuilder::kFloat64RoundTiesEven; |
return flags; |
} |