浏览代码

* fixed the debug output, generated by -dDEBUG_INSTRUCTIONREGISTERDEPENDENCIES
for x86 instructions, entered via inline assembler, using intel syntax
(the low level optimizer isn't normally run on them, so it doesn't matter that
InstructionLoadsFromReg and similar functions don't work on them, but with
-dDEBUG_INSTRUCTIONREGISTERDEPENDENCIES it is much more convenient for
debugging purposes to have correct data for them, because you can enter
instructions manually and see how these functions behave)

git-svn-id: trunk@36065 -

nickysn 8 年之前
父节点
当前提交
c096b1fe6b
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/aoptobj.pas

+ 3 - 0
compiler/aoptobj.pas

@@ -1591,6 +1591,9 @@ Unit AoptObj;
           begin
             if p.typ=ait_instruction then
               begin
+{$ifdef x86}
+                taicpu(p).SetOperandOrder(op_att);
+{$endif x86}
                 commentstr:='Instruction reads';
                 registers_found:=false;
                 for ri in tregisterindex do