From: Loren Merritt <[email protected]>
(Depends on cpuflags. Functions that haven't been updated to use
cpuflags will still unconditionally generate long nops)
---
Loren created this after a request from Ronald after further discussion
of the i568 nopl issue on IRC, so I'm sending it here to keep everything
in this mailing list thread.
Unfortunately this does not fix the problem at hand - all H.264 FATE
tests keep failing - apparently since not all functions have been
updated to use cpuflags as the log message indicates.
libavutil/x86/x86inc.asm | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index c167057..21b0866 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -805,6 +805,19 @@ INIT_XMM
%endif
%endmacro
+; avoid long nops on i586
+%imacro ALIGN 1-2 nop
+ %ifnidn %2, nop
+ ALIGNB %1, %2
+ %elifndef cpuflags
+ [ALIGN %1]
+ %elif cpuflag(mmx2)
+ [ALIGN %1]
+ %else
+ ALIGNB %1, %2
+ %endif
+%endmacro
+
;=============================================================================
; AVX abstraction layer
;=============================================================================
--
1.7.2.5
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel