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 404d053e92f7168599391a64ba85e8b56d8464df..a1cc44c8f7ad2ed06c27cd9605aa122fdaa953c5 100644 |
--- a/src/compiler/x87/instruction-selector-x87.cc |
+++ b/src/compiler/x87/instruction-selector-x87.cc |
@@ -496,9 +496,10 @@ void VisitDiv(InstructionSelector* selector, Node* node, ArchOpcode opcode) { |
void VisitMod(InstructionSelector* selector, Node* node, ArchOpcode opcode) { |
X87OperandGenerator g(selector); |
+ InstructionOperand temps[] = {g.TempRegister(eax)}; |
selector->Emit(opcode, g.DefineAsFixed(node, edx), |
g.UseFixed(node->InputAt(0), eax), |
- g.UseUnique(node->InputAt(1))); |
+ g.UseUnique(node->InputAt(1)), arraysize(temps), temps); |
} |
void EmitLea(InstructionSelector* selector, Node* result, Node* index, |