public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [rx] fix SUB #imm pattern
@ 2010-12-18  9:47 DJ Delorie
  0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2010-12-18  9:47 UTC (permalink / raw)
  To: binutils


Applied.

2010-12-18  DJ Delorie  <dj@redhat.com>

	* config/rx-parse.y (SUB): Correct subtraction of immediate
	pattern.

Index: config/rx-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/rx-parse.y,v
retrieving revision 1.2
diff -p -U3 -r1.2  config/rx-parse.y
--- config/rx-parse.y	5 Nov 2009 00:38:45 -0000	1.2
+++ config/rx-parse.y	18 Dec 2010 05:40:11 -0000
@@ -331,7 +331,7 @@ statement :
 	      { B2 (0x60, 0); FE ($3, 8, 4); F ($5, 12, 4); }
 	    else
 	      /* This is really an add, but we negate the immediate.  */
-	      { B2 (0x38, 0); F ($5, 8, 4); F ($5, 12, 4); NIMM ($3, 6); } } /* ? */
+	      { B2 (0x70, 0); F ($5, 8, 4); F ($5, 12, 4); NIMM ($3, 6); } }
 
 	| CMP '#' EXPR ',' REG
 	  { if (rx_uintop ($3, 4))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-18  5:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-18  9:47 [rx] fix SUB #imm pattern DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).