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 a254ea27681fdee8e913300b8336494e375bc368..b84a053e8515ab0b6a66e0ceab68c3daaaee44f3 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -671,7 +671,7 @@ void InstructionSelector::VisitInt32Div(Node* node) { |
} |
} |
} |
- Emit(kMips64Div, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMips64Div, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -679,7 +679,7 @@ void InstructionSelector::VisitInt32Div(Node* node) { |
void InstructionSelector::VisitUint32Div(Node* node) { |
Mips64OperandGenerator g(this); |
Int32BinopMatcher m(node); |
- Emit(kMips64DivU, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMips64DivU, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -718,7 +718,7 @@ void InstructionSelector::VisitUint32Mod(Node* node) { |
void InstructionSelector::VisitInt64Div(Node* node) { |
Mips64OperandGenerator g(this); |
Int64BinopMatcher m(node); |
- Emit(kMips64Ddiv, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMips64Ddiv, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -726,7 +726,7 @@ void InstructionSelector::VisitInt64Div(Node* node) { |
void InstructionSelector::VisitUint64Div(Node* node) { |
Mips64OperandGenerator g(this); |
Int64BinopMatcher m(node); |
- Emit(kMips64DdivU, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
+ Emit(kMips64DdivU, g.DefineSameAsFirst(node), g.UseRegister(m.left().node()), |
g.UseRegister(m.right().node())); |
} |
@@ -1653,6 +1653,8 @@ void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
MachineOperatorBuilder::Flags |
InstructionSelector::SupportedMachineOperatorFlags() { |
return MachineOperatorBuilder::kWord32ShiftIsSafe | |
+ MachineOperatorBuilder::kInt32DivIsSafe | |
+ MachineOperatorBuilder::kUint32DivIsSafe | |
MachineOperatorBuilder::kFloat64Min | |
MachineOperatorBuilder::kFloat64Max | |
MachineOperatorBuilder::kFloat32Min | |