aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-17 16:00:55 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-17 16:00:55 +0000
commitc0dea4956d5e53f80c9d3a35b6c7a42532f0fb35 (patch)
tree0395c5c6d048ca87fe085aa32f7cc0793c464477 /gas
parent093e9a32d3f35c917c457d16e2286cf6e857ef83 (diff)
downloadbinutils-c0dea4956d5e53f80c9d3a35b6c7a42532f0fb35.zip
binutils-c0dea4956d5e53f80c9d3a35b6c7a42532f0fb35.tar.gz
binutils-c0dea4956d5e53f80c9d3a35b6c7a42532f0fb35.tar.bz2
* config/tc-mips.c (mips16_ip): Check for a missing expression
when using the register indirect addressing mode.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2de7a95..7511b4d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 13f284f..0b1b5c9 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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;