| 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 360a343487aa546caa626981379fd7029601bf5f..c0329602fdc81a187cd50c3d3bba3ed99e6bb601 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -885,7 +885,9 @@ void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) {
|
|
|
|
|
| void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
|
| - UNREACHABLE();
|
| + X87OperandGenerator g(this);
|
| + Emit(kX87Float64Round | MiscField::encode(kRoundToNearest),
|
| + g.UseFixed(node, stX_0), g.Use(node->InputAt(0)));
|
| }
|
|
|
|
|
| @@ -1307,7 +1309,8 @@ InstructionSelector::SupportedMachineOperatorFlags() {
|
|
|
| flags |= MachineOperatorBuilder::kFloat64RoundDown |
|
| MachineOperatorBuilder::kFloat64RoundUp |
|
| - MachineOperatorBuilder::kFloat64RoundTruncate;
|
| + MachineOperatorBuilder::kFloat64RoundTruncate |
|
| + MachineOperatorBuilder::kFloat64RoundTiesEven;
|
| return flags;
|
| }
|
|
|
|
|