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 82829a88352e8eb5db3e99af5ae5df4077d074ce..fea4e3f6235a8c7e88a62c9ae688669300cfae91 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -889,6 +889,12 @@ void InstructionSelector::VisitFloat32Min(Node* node) { |
} |
+void InstructionSelector::VisitFloat32Abs(Node* node) { |
+ X64OperandGenerator g(this); |
+ Emit(kSSEFloat32Abs, g.DefineSameAsFirst(node), g.Use(node->InputAt(0))); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat32Sqrt(Node* node) { |
X64OperandGenerator g(this); |
Emit(kSSEFloat32Sqrt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
@@ -953,6 +959,12 @@ void InstructionSelector::VisitFloat64Min(Node* node) { |
} |
+void InstructionSelector::VisitFloat64Abs(Node* node) { |
+ X64OperandGenerator g(this); |
+ Emit(kSSEFloat64Abs, g.DefineSameAsFirst(node), g.Use(node->InputAt(0))); |
+} |
+ |
+ |
void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
X64OperandGenerator g(this); |
Emit(kSSEFloat64Sqrt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
@@ -1508,8 +1520,10 @@ void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
MachineOperatorBuilder::Flags |
InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::Flags flags = |
+ MachineOperatorBuilder::kFloat32Abs | |
MachineOperatorBuilder::kFloat32Max | |
MachineOperatorBuilder::kFloat32Min | |
+ MachineOperatorBuilder::kFloat64Abs | |
MachineOperatorBuilder::kFloat64Max | |
MachineOperatorBuilder::kFloat64Min | |
MachineOperatorBuilder::kWord32ShiftIsSafe; |