Index: src/mips64/lithium-mips64.cc |
diff --git a/src/mips64/lithium-mips64.cc b/src/mips64/lithium-mips64.cc |
index c2de853e199e297ee58bce29578fa9f62c0e5848..505383de396a68a9ece9243874a6cde13440c2c9 100644 |
--- a/src/mips64/lithium-mips64.cc |
+++ b/src/mips64/lithium-mips64.cc |
@@ -1420,7 +1420,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; |