This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

RE: Feature request: Set the direction flag on x86/x64 register->register operations



> -----Original Message-----
> From: binutils-owner@sourceware.org [mailto:binutils-
> owner@sourceware.org] On Behalf Of H.J. Lu
> Sent: Friday, December 19, 2008 1:03 AM
> To: Stefan Dösinger
> Cc: binutils@sourceware.org
> Subject: Re: Feature request: Set the direction flag on x86/x64
> register->register operations
> 
> On Thu, Dec 18, 2008 at 3:52 PM, Stefan Dösinger
> > Almost. It only recognises "mov.r", not "movl.r" because the normal
> > suffix checking code works on the original string, so it tries to
> > parse the "movl.r" and can't match the ".r". The -1 in the code after
> > the
> > check_suffix: label should be -3 if the ".r" was found.
> >
> > Other than that it seems fine. "mov.r %esp, %ebp" works, and my other
> > tests I've written work too.
> >
> > Note that I have applied the patch by hand because my "mail client"
> > doesn't work too well with inlined patches. I don't think this caused
> > the problem though.
> 
> Please try this one.
I had to regenerate opcodes/i386-tbl.h, but now it works like a charm!
Objdump also disassembles the opcodes properly with the .r suffix




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