mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 20:14:14 +02:00
+ Aarch64: create better code for not(<byte>)
git-svn-id: trunk@49135 -
This commit is contained in:
parent
44e39f454a
commit
c90616944d
@ -1336,8 +1336,13 @@ implementation
|
|||||||
OP_NEG,
|
OP_NEG,
|
||||||
OP_NOT:
|
OP_NOT:
|
||||||
begin
|
begin
|
||||||
list.concat(taicpu.op_reg_reg(TOpCG2AsmOpReg[op],dst,src));
|
if (op=OP_NOT) and (size in [OS_8,OS_S8]) then
|
||||||
maybeadjustresult(list,op,size,dst);
|
list.concat(taicpu.op_reg_reg_const(A_EOR,dst,src,255))
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
list.concat(taicpu.op_reg_reg(TOpCG2AsmOpReg[op],dst,src));
|
||||||
|
maybeadjustresult(list,op,size,dst);
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
a_op_reg_reg_reg(list,op,size,src,dst,dst);
|
a_op_reg_reg_reg(list,op,size,src,dst,dst);
|
||||||
|
Loading…
Reference in New Issue
Block a user