aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-01-17 09:30:07 +0000
committerJeff Law <law@redhat.com>1994-01-17 09:30:07 +0000
commit51517966bc5bd9f7f3b4d283f1ebdc735cef4db6 (patch)
tree1425c3954c3353432b0f2bfd239237a58652eb71
parent9ee57a5e1a0f21c08651b03c409b9194b2da4092 (diff)
downloadfsf-binutils-gdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.zip
fsf-binutils-gdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.tar.gz
fsf-binutils-gdb-51517966bc5bd9f7f3b4d283f1ebdc735cef4db6.tar.bz2
* config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
and 'f' template operand.
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-hppa.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f52c7f8..9e2a8da 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Mon Jan 17 00:18:55 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
+ * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'
+ and 'f' template operand.
+
* config/tc-hppa.c (pa_ip): Handle 'N', 'O', 'o', '0', '1', 'u',
and '2' in copr and sfu instruction templates.
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 53f94b6..90cea10 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -2247,6 +2247,8 @@ pa_ip (str)
/* Handle a 3 bit SFU identifier at 25. */
case 'f':
+ if (*s++ != ',')
+ as_bad ("Invalid SFU identifier");
num = pa_get_absolute_expression (&the_insn, &s);
s = expr_end;
CHECK_FIELD (num, 7, 0, 0);
@@ -2285,6 +2287,8 @@ pa_ip (str)
/* Handle a 3-bit co-processor ID field. */
case 'u':
+ if (*s++ != ',')
+ as_bad ("Invalid COPR identifier");
num = pa_get_absolute_expression (&the_insn, &s);
s = expr_end;
CHECK_FIELD (num, 7, 0, 0);