Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index 5ccd29ef2cc86de747cab6156d9d8453dca540d1..e9f24f71e7097f8c4acf9a7685684fb2e3f52b07 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -1220,63 +1220,17 @@ void InstructionSelector::VisitFloat64Mod(Node* node) { |
} |
-void InstructionSelector::VisitFloat32Max(Node* node) { |
- Mips64OperandGenerator g(this); |
- if (kArchVariant == kMips64r6) { |
- Emit(kMips64Float32Max, g.DefineAsRegister(node), |
- g.UseUniqueRegister(node->InputAt(0)), |
- g.UseUniqueRegister(node->InputAt(1))); |
- |
- } else { |
- // Reverse operands, and use same reg. for result and right operand. |
- Emit(kMips64Float32Max, g.DefineSameAsFirst(node), |
- g.UseRegister(node->InputAt(1)), g.UseRegister(node->InputAt(0))); |
- } |
-} |
- |
- |
void InstructionSelector::VisitFloat64Max(Node* node) { |
Mips64OperandGenerator g(this); |
- if (kArchVariant == kMips64r6) { |
- Emit(kMips64Float64Max, g.DefineAsRegister(node), |
- g.UseUniqueRegister(node->InputAt(0)), |
- g.UseUniqueRegister(node->InputAt(1))); |
- |
- } else { |
- // Reverse operands, and use same reg. for result and right operand. |
- Emit(kMips64Float64Max, g.DefineSameAsFirst(node), |
- g.UseRegister(node->InputAt(1)), g.UseRegister(node->InputAt(0))); |
- } |
-} |
- |
- |
-void InstructionSelector::VisitFloat32Min(Node* node) { |
- Mips64OperandGenerator g(this); |
- if (kArchVariant == kMips64r6) { |
- Emit(kMips64Float32Min, g.DefineAsRegister(node), |
- g.UseUniqueRegister(node->InputAt(0)), |
- g.UseUniqueRegister(node->InputAt(1))); |
- |
- } else { |
- // Reverse operands, and use same reg. for result and right operand. |
- Emit(kMips64Float32Min, g.DefineSameAsFirst(node), |
- g.UseRegister(node->InputAt(1)), g.UseRegister(node->InputAt(0))); |
- } |
+ Emit(kMips64Float64Max, g.DefineAsRegister(node), |
+ g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); |
} |
void InstructionSelector::VisitFloat64Min(Node* node) { |
Mips64OperandGenerator g(this); |
- if (kArchVariant == kMips64r6) { |
- Emit(kMips64Float64Min, g.DefineAsRegister(node), |
- g.UseUniqueRegister(node->InputAt(0)), |
- g.UseUniqueRegister(node->InputAt(1))); |
- |
- } else { |
- // Reverse operands, and use same reg. for result and right operand. |
- Emit(kMips64Float64Min, g.DefineSameAsFirst(node), |
- g.UseRegister(node->InputAt(1)), g.UseRegister(node->InputAt(0))); |
- } |
+ Emit(kMips64Float64Min, g.DefineAsRegister(node), |
+ g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); |
} |
@@ -2082,10 +2036,6 @@ InstructionSelector::SupportedMachineOperatorFlags() { |
MachineOperatorBuilder::kWord32ShiftIsSafe | |
MachineOperatorBuilder::kInt32DivIsSafe | |
MachineOperatorBuilder::kUint32DivIsSafe | |
- MachineOperatorBuilder::kFloat64Min | |
- MachineOperatorBuilder::kFloat64Max | |
- MachineOperatorBuilder::kFloat32Min | |
- MachineOperatorBuilder::kFloat32Max | |
MachineOperatorBuilder::kFloat64RoundDown | |
MachineOperatorBuilder::kFloat32RoundDown | |
MachineOperatorBuilder::kFloat64RoundUp | |