mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:06:02 +02:00
* fix crash in debug output in TX86AsmOptimizer.DoArithCombineOpt for DEC/INC $reg
This commit is contained in:
parent
d18ff64ed7
commit
a2789d611f
@ -5956,10 +5956,16 @@ unit aoptx86;
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
DebugMsg(SPeepholeOptimization + 'Arithmetic combine: ' +
|
if taicpu(hp1).opercnt=1 then
|
||||||
debug_op2str(taicpu(hp1).opcode) + ' $' + debug_tostr(taicpu(hp1).oper[0]^.val) + ',' + debug_operstr(taicpu(hp1).oper[1]^) + '; ' +
|
DebugMsg(SPeepholeOptimization + 'Arithmetic combine: ' +
|
||||||
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(taicpu(p).oper[0]^.val) + ',' + debug_operstr(taicpu(p).oper[1]^) + ' -> ' +
|
debug_op2str(taicpu(hp1).opcode) + ' $' + debug_tostr(taicpu(hp1).oper[0]^.val) + '; ' +
|
||||||
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(ThisConst) + ' ' + debug_operstr(taicpu(p).oper[1]^), p);
|
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(taicpu(p).oper[0]^.val) + ',' + debug_operstr(taicpu(p).oper[1]^) + ' -> ' +
|
||||||
|
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(ThisConst) + ' ' + debug_operstr(taicpu(p).oper[1]^), p)
|
||||||
|
else
|
||||||
|
DebugMsg(SPeepholeOptimization + 'Arithmetic combine: ' +
|
||||||
|
debug_op2str(taicpu(hp1).opcode) + ' $' + debug_tostr(taicpu(hp1).oper[0]^.val) + ',' + debug_operstr(taicpu(hp1).oper[1]^) + '; ' +
|
||||||
|
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(taicpu(p).oper[0]^.val) + ',' + debug_operstr(taicpu(p).oper[1]^) + ' -> ' +
|
||||||
|
debug_op2str(taicpu(p).opcode) + ' $' + debug_tostr(ThisConst) + ' ' + debug_operstr(taicpu(p).oper[1]^), p);
|
||||||
|
|
||||||
taicpu(p).loadconst(0, ThisConst);
|
taicpu(p).loadconst(0, ThisConst);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user