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 397f9ac16bf9b2c9d6d490cede4227dbd94a8f68..0fe6a4b704ba6a1b8f737fa5a39b5589055850f0 100644 |
--- a/src/compiler/x87/instruction-selector-x87.cc |
+++ b/src/compiler/x87/instruction-selector-x87.cc |
@@ -972,6 +972,12 @@ void InstructionSelector::VisitFloat64Mod(Node* node) { |
Emit(kX87Float64Mod, g.DefineAsFixed(node, stX_0), 1, temps)->MarkAsCall(); |
} |
+void InstructionSelector::VisitFloat32Max(Node* node) { |
+ X87OperandGenerator g(this); |
+ Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); |
+ Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); |
+ Emit(kX87Float32Max, g.DefineAsFixed(node, stX_0), 0, nullptr); |
+} |
void InstructionSelector::VisitFloat64Max(Node* node) { |
X87OperandGenerator g(this); |
@@ -980,6 +986,12 @@ void InstructionSelector::VisitFloat64Max(Node* node) { |
Emit(kX87Float64Max, g.DefineAsFixed(node, stX_0), 0, nullptr); |
} |
+void InstructionSelector::VisitFloat32Min(Node* node) { |
+ X87OperandGenerator g(this); |
+ Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); |
+ Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); |
+ Emit(kX87Float32Min, g.DefineAsFixed(node, stX_0), 0, nullptr); |
+} |
void InstructionSelector::VisitFloat64Min(Node* node) { |
X87OperandGenerator g(this); |