Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 45ab52c54a8616ded9d5a492d4fc87f8cc58785e..fe0b1aef8b3f96e9bd3fecbfb6997d9ad0976701 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -701,6 +701,14 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ Ext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
i.InputInt8(2)); |
break; |
+ case kMipsIns: |
+ if (instr->InputAt(1)->IsImmediate() && i.InputInt8(1) == 0) { |
+ __ Ins(i.OutputRegister(), zero_reg, i.InputInt8(1), i.InputInt8(2)); |
+ } else { |
+ __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
+ i.InputInt8(2)); |
+ } |
+ break; |
case kMipsRor: |
__ Ror(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
break; |