[patch] rx: make .L optional for ADC and SBB

DJ Delorie dj@redhat.com
Tue Apr 3 19:06:00 GMT 2012


Follow-up to yesterday's patch.  While the manual implies .L is
required, gcc assumes it's optional, and since no other mode is
supported, it might as well be optional.

	* config/rx-parse.y: Make the .L optional for ADC and SBB.

Index: config/rx-parse.y
===================================================================
RCS file: /cvs/src/src/gas/config/rx-parse.y,v
retrieving revision 1.6
diff -p -U5 -r1.6 rx-parse.y
--- config/rx-parse.y	3 Apr 2012 03:01:57 -0000	1.6
+++ config/rx-parse.y	3 Apr 2012 19:03:33 -0000
@@ -814,11 +814,11 @@ op_subadd
 /* sbb, neg, adc, abs, max, min, div, divu, tst, not, xor, stz, stnz, emul, emulu */
 
 op_dp20_rm_l
 	: REG ',' REG
 	  { id24 (1, 0x03 + (sub_op<<2), 0x00); F ($1, 16, 4); F ($3, 20, 4); }
-	| disp '[' REG ']' DOT_L ',' REG
+	| disp '[' REG ']' opt_l ',' REG
 	  { B4 (MEMEX, 0xa0, 0x00 + sub_op, 0x00);
 	  F ($3, 24, 4); F ($7, 28, 4); DSP ($1, 14, LSIZE); }
 	;
 
 /* neg, adc, abs, max, min, div, divu, tst, not, xor, stz, stnz, emul, emulu */



More information about the Binutils mailing list