Commit 1c6bb813 authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Khirnov

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: 's avatarAnton Khirnov <anton@khirnov.net>
parent f5e486f6
...@@ -1499,13 +1499,15 @@ FMA4_INSTR fnmsubps, fnmsub132ps, fnmsub213ps, fnmsub231ps ...@@ -1499,13 +1499,15 @@ FMA4_INSTR fnmsubps, fnmsub132ps, fnmsub213ps, fnmsub231ps
FMA4_INSTR fnmsubsd, fnmsub132sd, fnmsub213sd, fnmsub231sd FMA4_INSTR fnmsubsd, fnmsub132sd, fnmsub213sd, fnmsub231sd
FMA4_INSTR fnmsubss, fnmsub132ss, fnmsub213ss, fnmsub231ss FMA4_INSTR fnmsubss, fnmsub132ss, fnmsub213ss, fnmsub231ss
; workaround: vpbroadcastq is broken in x86_32 due to a yasm bug ; workaround: vpbroadcastq is broken in x86_32 due to a yasm bug (fixed in 1.3.0)
%if ARCH_X86_64 == 0 %ifdef __YASM_VER__
%macro vpbroadcastq 2 %if __YASM_VERSION_ID__ < 0x01030000 && ARCH_X86_64 == 0
%if sizeof%1 == 16 %macro vpbroadcastq 2
movddup %1, %2 %if sizeof%1 == 16
%else movddup %1, %2
vbroadcastsd %1, %2 %else
%endif vbroadcastsd %1, %2
%endmacro %endif
%endmacro
%endif
%endif %endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment