| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 1c8973fe7e2d1e08071df3b390f917cfff6b34fa..3c583e3897d21d9c4832bdac9c28e49da724569b 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -1246,8 +1246,10 @@ void LCodeGen::DoDivI(LDivI* instr) {
|
| __ bind(&left_not_min_int);
|
| }
|
|
|
| - __ mfhi(result);
|
| - DeoptimizeIf(ne, instr->environment(), result, Operand(zero_reg));
|
| + if (!instr->hydrogen()->CheckFlag(HInstruction::kAllUsesTruncatingToInt32)) {
|
| + __ mfhi(result);
|
| + DeoptimizeIf(ne, instr->environment(), result, Operand(zero_reg));
|
| + }
|
| __ mflo(result);
|
| }
|
|
|
|
|