2013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
[deliverable/binutils-gdb.git] / gas / config / tc-mips.c
index ca95922ef3c3a977fb1f45ac8187bb0f5c6be1b4..ff1c610d605d0aef54f876a8cabcc6677c8f5a4d 100644 (file)
@@ -7091,6 +7091,10 @@ match_insn (struct mips_cl_insn *insn, const struct mips_opcode *opcode,
                set_insn_error
                  (0, _("a destination register must be supplied"));
            }
+         else if (arg.last_regno == 31
+                  && (strncmp (insn->insn_mo->name, "bltzal", 6) == 0
+                      || strncmp (insn->insn_mo->name, "bgezal", 6) == 0))
+           set_insn_error (0, _("the source register must not be $31"));
          check_completed_insn (&arg);
          return TRUE;
        }
This page took 0.026254 seconds and 4 git commands to generate.