[committed] Narrow PA 2.0 14-bit immediate
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue Jul 19 01:17:00 GMT 2005
The '#' 14-bit immediate is specific to PA 2.0 narrow mode. This change
ensures that this immediate won't match when assembling in wide mode.
Tested on hppa-unknown-linux-gnu with no regressions.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2005-07-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* tc-hppa.c (pa_ip): Reject match for '#' immediate if not pa20.
Index: config/tc-hppa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.122
diff -u -3 -p -r1.122 tc-hppa.c
--- config/tc-hppa.c 17 Jul 2005 00:33:45 -0000 1.122
+++ config/tc-hppa.c 19 Jul 2005 00:58:22 -0000
@@ -3066,6 +3066,8 @@ pa_ip (str)
/* Handle 14 bit immediate, shifted left three times. */
case '#':
+ if (bfd_get_mach (stdoutput) != pa20)
+ break;
the_insn.field_selector = pa_chk_field_selector (&s);
get_expression (s);
s = expr_end;
More information about the Binutils
mailing list