* config/tc-mips.c (mips16_ip): Check for a missing expression

when using the register indirect addressing mode.
This commit is contained in:
Ian Lance Taylor 1996-12-17 16:00:55 +00:00
parent 093e9a32d3
commit c0dea4956d
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 17 10:59:32 1996 Ian Lance Taylor <ian@cygnus.com>
* config/tc-mips.c (mips16_ip): Check for a missing expression
when using the register indirect addressing mode.
Mon Dec 16 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
* config/tc-mn10200.c (mn10200_insert_operand): Don't

View File

@ -7010,6 +7010,17 @@ mips16_ip (str, ip)
/* Looks like a register name. */
break;
}
if (s[0] == '('
&& args[1] == '('
&& s[1] == '$')
{
/* It looks like the expression was omitted before a
register indirection, which means that the
expression is implicitly zero. */
continue;
}
my_getExpression (&imm_expr, s);
/* We need to relax this instruction. */
imm_reloc = (int) BFD_RELOC_UNUSED + c;