mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-02 13:49:41 +02:00
* fix MovOpMov2MovOp optimization if no -Cpcoreavx2 is used
git-svn-id: trunk@40979 -
This commit is contained in:
parent
f6aa6e5b58
commit
4fb7b5d3ff
@ -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))
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user