| 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 aed82f5b80a427e0adf3856cb1bc92e1b70b5606..c7eacf51d05f7e23416471d4fda094b6db0080d6 100644
|
| --- a/src/compiler/ppc/instruction-selector-ppc.cc
|
| +++ b/src/compiler/ppc/instruction-selector-ppc.cc
|
| @@ -1134,13 +1134,11 @@ void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
|
| }
|
|
|
| void InstructionSelector::VisitTruncateFloat64ToWord32(Node* node) {
|
| - switch (TruncationModeOf(node->op())) {
|
| - case TruncationMode::kJavaScript:
|
| - return VisitRR(this, kArchTruncateDoubleToI, node);
|
| - case TruncationMode::kRoundToZero:
|
| - return VisitRR(this, kPPC_DoubleToInt32, node);
|
| - }
|
| - UNREACHABLE();
|
| + VisitRR(this, kArchTruncateDoubleToI, node);
|
| +}
|
| +
|
| +void InstructionSelector::VisitRoundFloat64ToInt32(Node* node) {
|
| + VisitRR(this, kPPC_DoubleToInt32, node);
|
| }
|
|
|
|
|
|
|