* config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u'

and 'f' template operand.
This commit is contained in:
Jeff Law 1994-01-17 09:30:07 +00:00
parent 9ee57a5e1a
commit 51517966bc
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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);