Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index 64850c09dfab75372802bae58b9bf0cf8fa2cf82..38878c5e7cb7d84cfa714714f3788cf68f556d56 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -1123,6 +1123,11 @@ void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
} |
+void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
+ VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundUp)); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
VisitRR(this, node, kSSEFloat64Round | MiscField::encode(kRoundToZero)); |
} |
@@ -1662,6 +1667,7 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
} |
if (CpuFeatures::IsSupported(SSE4_1)) { |
flags |= MachineOperatorBuilder::kFloat64RoundDown | |
+ MachineOperatorBuilder::kFloat64RoundUp | |
MachineOperatorBuilder::kFloat64RoundTruncate; |
} |
return flags; |