Browse Source

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

git-svn-id: branches/tg74/avx512@42667 -
tg74 6 years ago
parent
commit
ad791e8e34
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/x86/aasmcpu.pas

+ 6 - 0
compiler/x86/aasmcpu.pas

@@ -1707,6 +1707,12 @@ implementation
            { Check the operand flags }
            { Check the operand flags }
            if (insot and (not currot) and OT_NON_SIZE)<>0 then
            if (insot and (not currot) and OT_NON_SIZE)<>0 then
              exit;
              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
            { Check if the passed operand size matches with one of
              the supported operand sizes }
              the supported operand sizes }
            if ((insot and OT_SIZE_MASK)<>0) and
            if ((insot and OT_SIZE_MASK)<>0) and