mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 12:59:24 +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_NOT:
|
||||
begin
|
||||
list.concat(taicpu.op_reg_reg(TOpCG2AsmOpReg[op],dst,src));
|
||||
maybeadjustresult(list,op,size,dst);
|
||||
if (op=OP_NOT) and (size in [OS_8,OS_S8]) then
|
||||
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
|
||||
else
|
||||
a_op_reg_reg_reg(list,op,size,src,dst,dst);
|
||||
|
Loading…
Reference in New Issue
Block a user