* fix constant calculation for the AndAnd2And optimization if the first and is removed, noticed by Nico Erfurth

git-svn-id: trunk@23541 -
This commit is contained in:
florian 2013-01-29 20:39:22 +00:00
parent 5af646d1d2
commit ef1c848198

View File

@ -1216,7 +1216,7 @@ Implementation
else if not(RegUsedBetween(taicpu(p).oper[1]^.reg,p,hp1)) then
begin
DebugMsg('Peephole AndAnd2And done', hp1);
taicpu(hp1).loadConst(2,taicpu(hp1).oper[2]^.val and taicpu(hp1).oper[2]^.val);
taicpu(hp1).loadConst(2,taicpu(p).oper[2]^.val and taicpu(hp1).oper[2]^.val);
taicpu(hp1).oppostfix:=taicpu(p).oppostfix;
taicpu(hp1).loadReg(1,taicpu(p).oper[1]^.reg);
asml.remove(p);