Expression evaluation bug

Diego Novillo dnovillo@redhat.com
Sun Mar 25 07:40:00 GMT 2001


On Sun, 25 Mar 2001, Alan Modra wrote:

> On Sat, 24 Mar 2001, Mikulas Patocka wrote:
> 
> > movl (, %ecx, (2+2)), %eax
> 
> Grumble.  I guess it's a bug that we don't at least flag this as a syntax
> error.  Oh well, not too hard to fix, at least for AT&T mode.  Someone
> else can tackle an equivalent intel mode change if they feel like it.
> 
This seems to be handled fine in intel mode already.

        mov eax, dword ptr [ecx*(2+2)]

produces:

	a.s: Assembler messages:
	a.s:5: Error: expecting scale factor of 1, 2, 4, or 8: got `('


Diego.



More information about the Binutils mailing list