Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 293ecb0a9a125a50aa31e4296234b2be1ea16461..c784f91b65d0fade53745773ef8cb8e96625bdba 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1440,6 +1440,10 @@ LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
instr->CheckFlag(HValue::kBailoutOnMinusZero)) |
? AssignEnvironment(result) |
: result; |
+ } else if (instr->fixed_right_arg().has_value) { |
+ LModI* mod = new(zone()) LModI(UseRegisterAtStart(left), |
+ UseRegisterAtStart(right)); |
+ return AssignEnvironment(DefineAsRegister(mod)); |
} else { |
LModI* mod = new(zone()) LModI(UseRegister(left), |
UseRegister(right), |