浏览代码

bugfix disp8*N global variable

git-svn-id: branches/tg74/avx512-0037785@47215 -
tg74 4 年之前
父节点
当前提交
673a113c0f
共有 1 个文件被更改,包括 14 次插入6 次删除
  1. 14 6
      compiler/x86/aasmcpu.pas

+ 14 - 6
compiler/x86/aasmcpu.pas

@@ -2186,12 +2186,20 @@ implementation
           begin
             if aInput.typ = top_ref then
             begin
-              if (aInput.ref^.offset <> 0) and
-                 ((aInput.ref^.offset mod tuplesize) = 0) and
-                 (abs(aInput.ref^.offset) div tuplesize <= 127) then
-              begin
-                aInput.ref^.offset := aInput.ref^.offset div tuplesize;
-                EVEXTupleState := etsIsTuple;
+              
+	      // TODO delete
+              Message1(asmr_w_segment_override_ignored_in_64bit_mode, '  "top_ref: " ' + generic_regname(aInput.ref^.base));
+
+
+	      if aInput.ref^.base <> NR_NO then
+	      begin	      
+	        if (aInput.ref^.offset <> 0) and
+                   ((aInput.ref^.offset mod tuplesize) = 0) and
+                   (abs(aInput.ref^.offset) div tuplesize <= 127) then
+                begin
+                  aInput.ref^.offset := aInput.ref^.offset div tuplesize;
+                  EVEXTupleState := etsIsTuple;
+    	        end;  
               end;
             end;
           end;