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

Henrik Gramner henrik at gramner.com
Tue Aug 4 20:48:05 CEST 2015


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
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list