[FFmpeg-devel] r9017 breaks WMA decoding on Intel Macs

Trent Piepho xyzzy
Wed May 30 05:30:05 CEST 2007

On Tue, 29 May 2007, matthieu castet wrote:
> >>
> >> It seems to generate the correct thing for me.
> >
> > Well, I think there's a typo in your msg: "movaps      -16%0, %%xmm4
> > \n\t" is the same thing as "movaps      -16%0, %%xmm4 \n\t", character
> > per character.
> yes it was instead of the original (-16+%0).

%0 could be an address that already has a displacement, for example
"32(%esp)".  In that case "-16%0" becomes "-1632(%esp) which is totally
wrong, while "-16+%0" becomes "-16+32(%esp)" which is correct.  The problem
is that you don't know if there will be a displacement or not so you can't
get the syntax correct.  gas normally gives a warning but assembles
"-16+(%eax)" into the desired instruction, so that's the form used.

More information about the ffmpeg-devel mailing list