diff options
author | Henrik Gramner <henrik@gramner.com> | 2015-08-01 17:27:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-08-11 11:11:27 +0200 |
commit | 1c6bb813284732d9a1acacfe99522d9f66ebf73e (patch) | |
tree | 23fb8a4c571ce984b489eddc0a56685f1e945ab4 | |
parent | f5e486f6f8c242bb2be01ad3ae952b5733ba1113 (diff) | |
download | ffmpeg-1c6bb813284732d9a1acacfe99522d9f66ebf73e.tar.gz |
x86inc: Disable vpbroadcastq workaround in newer yasm versions
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavutil/x86/x86inc.asm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index 2844fdf155..d4ce68fa63 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -1499,13 +1499,15 @@ FMA4_INSTR fnmsubps, fnmsub132ps, fnmsub213ps, fnmsub231ps FMA4_INSTR fnmsubsd, fnmsub132sd, fnmsub213sd, fnmsub231sd FMA4_INSTR fnmsubss, fnmsub132ss, fnmsub213ss, fnmsub231ss -; workaround: vpbroadcastq is broken in x86_32 due to a yasm bug -%if ARCH_X86_64 == 0 -%macro vpbroadcastq 2 -%if sizeof%1 == 16 - movddup %1, %2 -%else - vbroadcastsd %1, %2 -%endif -%endmacro +; workaround: vpbroadcastq is broken in x86_32 due to a yasm bug (fixed in 1.3.0) +%ifdef __YASM_VER__ + %if __YASM_VERSION_ID__ < 0x01030000 && ARCH_X86_64 == 0 + %macro vpbroadcastq 2 + %if sizeof%1 == 16 + movddup %1, %2 + %else + vbroadcastsd %1, %2 + %endif + %endmacro + %endif %endif |