This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rx] fix SUB #imm pattern


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]