Browse Source

* 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 years ago
parent
commit
c096b1fe6b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/aoptobj.pas

+ 3 - 0
compiler/aoptobj.pas

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