]> git.sesse.net Git - x264/commitdiff
x86inc: Disable vpbroadcastq workaround in newer yasm versions
authorHenrik Gramner <henrik@gramner.com>
Sat, 23 May 2015 11:38:05 +0000 (13:38 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sat, 25 Jul 2015 20:52:54 +0000 (22:52 +0200)
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.

common/x86/x86inc.asm

index d897fa4711770f5f46a2495700435c4eac1fd04c..668902e995074442b23b377d18ac008736a456a4 100644 (file)
@@ -1470,13 +1470,13 @@ 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)
+%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