This is the mail archive of the binutils@sources.redhat.com 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]

Re: Expression evaluation bug


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.


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