x86inc: Fix VEX -> EVEX instruction conversion stable
authorHenrik Gramner <henrik@gramner.com>
Fri, 30 Mar 2018 23:16:06 +0000 (01:16 +0200)
committerHenrik Gramner <henrik@gramner.com>
Mon, 6 Aug 2018 21:24:12 +0000 (23:24 +0200)
There's an edge case that wasn't properly handled.

common/x86/x86inc.asm

index 5ec29e2..49e73d6 100644 (file)
@@ -1654,6 +1654,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