diff mbox

[FFmpeg-devel,1/7] x86inc: Fix VEX -> EVEX instruction conversion

Message ID 20190805133916.3349-2-jdarnley@obe.tv
State New
Headers show

Commit Message

James Darnley Aug. 5, 2019, 1:39 p.m. UTC
From: Henrik Gramner <henrik@gramner.com>

There's an edge case that wasn't properly handled.
---
 libavutil/x86/x86inc.asm | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm
index 5044ee86f0..bc370a6186 100644
--- a/libavutil/x86/x86inc.asm
+++ b/libavutil/x86/x86inc.asm
@@ -1662,6 +1662,11 @@  FMA4_INSTR fnmsub,   pd, ps, sd, ss
                 %assign %%evex_required 1
             %endif
         %endif
+        %ifnum regnumof%3
+            %if regnumof%3 >= 16 || sizeof%3 > 32
+                %assign %%evex_required 1
+            %endif
+        %endif
         %if %%evex_required
             %6 %%args
         %else