Index: src/mips/disasm-mips.cc |
diff --git a/src/mips/disasm-mips.cc b/src/mips/disasm-mips.cc |
index 936514aab2616f0d4250953060f06b4b8f755dae..7e0a480e1324c787b4940d0c081d6d91670f976e 100644 |
--- a/src/mips/disasm-mips.cc |
+++ b/src/mips/disasm-mips.cc |
@@ -1500,6 +1500,7 @@ void Decoder::DecodeTypeImmediate(Instruction* instr) { |
if (rs_reg >= rt_reg) { |
Format(instr, "bovc 'rs, 'rt, 'imm16s -> 'imm16p4s2"); |
} else { |
+ DCHECK(rt_reg > 0); |
if (rs_reg == 0) { |
Format(instr, "beqzalc 'rt, 'imm16s -> 'imm16p4s2"); |
} else { |
@@ -1516,6 +1517,7 @@ void Decoder::DecodeTypeImmediate(Instruction* instr) { |
if (rs_reg >= rt_reg) { |
Format(instr, "bnvc 'rs, 'rt, 'imm16s -> 'imm16p4s2"); |
} else { |
+ DCHECK(rt_reg > 0); |
if (rs_reg == 0) { |
Format(instr, "bnezalc 'rt, 'imm16s -> 'imm16p4s2"); |
} else { |