aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2009-01-06 19:22:11 +0000
committerChao-ying Fu <fu@mips.com>2009-01-06 19:22:11 +0000
commit2486447610b91efedbc68e5708ffd9e0606733b5 (patch)
tree82d988cc7b20d4fc268a5cf30f6fee4a711dd529 /gas
parented25d7320abdd2411ab54d1757c1c4fafff7b928 (diff)
downloadfsf-binutils-gdb-2486447610b91efedbc68e5708ffd9e0606733b5.zip
fsf-binutils-gdb-2486447610b91efedbc68e5708ffd9e0606733b5.tar.gz
fsf-binutils-gdb-2486447610b91efedbc68e5708ffd9e0606733b5.tar.bz2
2009-01-06 Chao-ying Fu <fu@mips.com>
* config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff. Use strncmp to match jalr and jalr.hb. Fix a typo.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bc55407..cfb6fd3 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-06 Chao-ying Fu <fu@mips.com>
+
+ * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
+ Use strncmp to match jalr and jalr.hb.
+ Fix a typo.
+
2009-01-05 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (December, 2008)
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index c472509..bc62486 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -8656,6 +8656,7 @@ mips_ip (char *str, struct mips_cl_insn *ip)
create_insn (ip, insn);
insn_error = NULL;
argnum = 1;
+ lastregno = 0xffffffff;
for (args = insn->args;; ++args)
{
int is_mdmx;
@@ -9397,14 +9398,14 @@ do_msbd:
if (c == 'z' && regno != 0)
break;
- if (c == 's' && !strcmp (ip->insn_mo->name, "jalr"))
+ if (c == 's' && !strncmp (ip->insn_mo->name, "jalr", 4))
{
if (regno == lastregno)
{
- insn_error = _("source and destinationations must be different");
+ insn_error = _("source and destination must be different");
continue;
}
- if (regno == 31 && lastregno == 0)
+ if (regno == 31 && lastregno == 0xffffffff)
{
insn_error = _("a destination register must be supplied");
continue;