This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [BUG] jecxz
On 30 October 2002 16:56, H. J. Lu wrote:
> On Wed, Oct 30, 2002 at 07:54:01PM -0200, Denis Vlasenko wrote:
> > On 30 October 2002 18:59, Denis Vlasenko wrote:
> > > bug.s
> > > =====
> > > .text
> > > .align 4
> > > .globl csum_ssemmxplus
> > >
> > > csum_ssemmxplus:
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;
> > > jecxz 90f
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > > nop;nop;nop;nop;nop;nop;nop;nop;
> > > 90:
> > > nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
> > >
> > > as silently generates *NEGATIVE* jump address for that jecxz!
> >
> > Similar bug just attacked me with loop instruction.
> > The worst thing is _silent_ generation of wrong object code.
>
> I got
>
> bug.s: Assembler messages:
> bug.s:8: Error: value of 168 too large for field of 1 bytes at
> 0000000000000015
>
> That is binutils from CVS on 20021029.
Must be fixed then.
I don't yet use versions from CVS, will try latest release.
--
vda