shithub: dav1d

Download patch

ref: ac5f7d0c4c549fc5ae2d24005b54a00b43ef2fc4
parent: c19484d8e5c63ddbe55f99add3e6cb1f58651ec4
author: Henrik Gramner <gramner@twoorioles.com>
date: Wed Jun 24 10:09:08 EDT 2020

x86inc: Improve warnings for use of unsupported instructions

--- a/src/ext/x86/x86inc.asm
+++ b/src/ext/x86/x86inc.asm
@@ -1256,6 +1256,12 @@
                 %error use of ``%1'' sse2 instruction in cpuname function: current_function
             %elif %3 == 0 && __sizeofreg == 32 && notcpuflag(avx2)
                 %error use of ``%1'' avx2 instruction in cpuname function: current_function
+            %elif __sizeofreg == 16 && notcpuflag(sse)
+                %error use of ``%1'' sse instruction in cpuname function: current_function
+            %elif __sizeofreg == 32 && notcpuflag(avx)
+                %error use of ``%1'' avx instruction in cpuname function: current_function
+            %elif __sizeofreg == 64 && notcpuflag(avx512)
+                %error use of ``%1'' avx512 instruction in cpuname function: current_function
             %elifidn %1, pextrw ; special case because the base instruction is mmx2,
                 %ifnid %6       ; but sse4 is required for memory operands
                     %if notcpuflag(sse4)