PATCH: PR 659: i386 assemblers treats "(%ebx,%ecx,0)" as "(%ebx,%ecx,1)"

H. J. Lu hjl@lucon.org
Fri Jan 14 19:32:00 GMT 2005


This patch will disallow "(%ebx,%ecx,0)". I will check it in shortly.


H.J.
----
2005-01-14  H.J. Lu  <hongjiu.lu@intel.com>

	PR 659	
	* config/tc-i386.c (i386_scale): Disallow 0 scale.

--- gas/config/tc-i386.c.0	2004-12-22 09:30:53.000000000 -0800
+++ gas/config/tc-i386.c	2005-01-14 11:27:06.915008639 -0800
@@ -3952,7 +3952,6 @@ i386_scale (scale)
 
   switch (val)
     {
-    case 0:
     case 1:
       i.log2_scale_factor = 0;
       break;



More information about the Binutils mailing list