Bläddra i källkod

bugfix error with avx-memory-parameter OT_MEM128,OT_MEM256,OT_MEM512

git-svn-id: branches/tg74/avx512@42667 -
tg74 6 år sedan
förälder
incheckning
ad791e8e34
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      compiler/x86/aasmcpu.pas

+ 6 - 0
compiler/x86/aasmcpu.pas

@@ -1707,6 +1707,12 @@ implementation
            { Check the operand flags }
            if (insot and (not currot) and OT_NON_SIZE)<>0 then
              exit;
+
+           // IGNORE VECTOR-MEMORY-SIZE
+           if insot and OT_MEMORY = OT_MEMORY then
+            insot := insot and not(OT_BITS128 or OT_BITS256 or OT_BITS512);
+
+
            { Check if the passed operand size matches with one of
              the supported operand sizes }
            if ((insot and OT_SIZE_MASK)<>0) and