From c096b1fe6bef30f0fefc08bac0c7a82e233857cd Mon Sep 17 00:00:00 2001 From: nickysn Date: Wed, 3 May 2017 10:14:35 +0000 Subject: [PATCH] * 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 - --- compiler/aoptobj.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/aoptobj.pas b/compiler/aoptobj.pas index 71f91a5d38..7520280831 100644 --- a/compiler/aoptobj.pas +++ b/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