2013-09-12 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
* config/tc-mips.c (match_insn): Set error when $31 is used for bltzal* and bgezal*.
This commit is contained in:
parent
46dd523316
commit
173d34478a
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-09-12 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
|
||||
|
||||
* config/tc-mips.c (match_insn): Set error when $31 is used for
|
||||
bltzal* and bgezal*.
|
||||
|
||||
2013-09-04 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* config/tc-ppc.c (md_apply_fix): Handle defined after use toc
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue