[FFmpeg-devel] [PATCH] x86inc: warn if XOP integer FMA instruction emulation is impossible

Ronald S. Bultje rsbultje at gmail.com
Tue Aug 4 21:01:24 CEST 2015


Hi,

On Tue, Aug 4, 2015 at 2:48 PM, Henrik Gramner <henrik at gramner.com> wrote:

> From: Anton Mitrofanov <BugMaster at narod.ru>
>
> Signed-off-by: Henrik Gramner <henrik at gramner.com>
> ---
>  libavutil/x86/x86inc.asm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
> index 76fcec4..6ad9785 100644
> --- a/libavutil/x86/x86inc.asm
> +++ b/libavutil/x86/x86inc.asm
> @@ -1437,9 +1437,11 @@ AVX_INSTR pfmul, 3dnow, 1, 0, 1
>      %macro %1 4-7 %1, %2, %3
>          %if cpuflag(xop)
>              v%5 %1, %2, %3, %4
> -        %else
> +        %elifnidn %1, %4
>              %6 %1, %2, %3
>              %7 %1, %4
> +        %else
> +            %error non-xop emulation of ``%5 %1, %2, %3, %4'' is not
> supported
>          %endif
>      %endmacro
>  %endmacro
>

lgtm.

Ronald


More information about the ffmpeg-devel mailing list