* fix MovOpMov2MovOp optimization if no -Cpcoreavx2 is used

git-svn-id: trunk@40979 -
This commit is contained in:
florian 2019-01-21 21:57:07 +00:00
parent f6aa6e5b58
commit 4fb7b5d3ff

View File

@ -1842,7 +1842,7 @@ unit aoptx86;
end
else if MatchOpType(taicpu(hp2),top_reg,top_reg) and
not(SuperRegistersEqual(taicpu(hp1).oper[0]^.reg,taicpu(hp2).oper[1]^.reg)) and
(not((taicpu(hp1).opsize=S_Q) and (taicpu(hp2).opsize=S_L)) or
((topsize2memsize[taicpu(hp1).opsize]<= topsize2memsize[taicpu(hp2).opsize]) or
{ opsize matters for these opcodes, we could probably work around this, but it is not worth the effort }
((taicpu(hp1).opcode<>A_SHL) and (taicpu(hp1).opcode<>A_SHR) and (taicpu(hp1).opcode<>A_SAR))
)