[libav-devel] [PATCH 4/5] x86: h264: prevent gcc from issuing a i686 nopl instruction on i586 machines

Ronald S. Bultje rsbultje at gmail.com
Fri May 11 17:48:09 CEST 2012


Hi,

On Fri, May 11, 2012 at 7:58 AM, Diego Biurrun <diego at biurrun.de> wrote:
> From: Michael Kostylev <michael.kostylev at gmail.com>
>
> ---
>  libavcodec/x86/h264_intrapred.asm |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/x86/h264_intrapred.asm b/libavcodec/x86/h264_intrapred.asm
> index 3beb3b9..a09eb03 100644
> --- a/libavcodec/x86/h264_intrapred.asm
> +++ b/libavcodec/x86/h264_intrapred.asm
> @@ -731,7 +731,7 @@ cglobal pred8x8_plane_%1, 2, 9, %2
>  %endif
>
>     mov          r4, 4
> -ALIGN 16
> +ALIGNB 16,nop
>  .loop
>  %if mmsize == 16
>     mova         m3, m0           ; b[0..7]
> --
> 1.7.2.5

Only for mmx. For anything above, using nopl is fine.

Ronald


More information about the libav-devel mailing list