Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index fcdc1e059cdeb0f293315e83dd10415a0c2e7b60..336103e5dc561f734f3a7c8b490d436a0ddf53df 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1418,7 +1418,8 @@ LInstruction* LChunkBuilder::DoModByPowerOf2I(HMod* instr) { |
int32_t divisor = instr->right()->GetInteger32Constant(); |
LInstruction* result = DefineSameAsFirst(new(zone()) LModByPowerOf2I( |
dividend, divisor)); |
- if (instr->CheckFlag(HValue::kBailoutOnMinusZero)) { |
+ if (instr->CheckFlag(HValue::kLeftCanBeNegative) && |
+ instr->CheckFlag(HValue::kBailoutOnMinusZero)) { |
result = AssignEnvironment(result); |
} |
return result; |