From 51517966bc5bd9f7f3b4d283f1ebdc735cef4db6 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 17 Jan 1994 09:30:07 +0000 Subject: [PATCH] * config/tc-hppa.c (pa_ip): Explicitly check for comma before 'u' and 'f' template operand. --- gas/ChangeLog | 3 +++ gas/config/tc-hppa.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index f52c7f8cca..9e2a8da791 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 53f94b6f01..90cea107af 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); -- 2.34.1