+ Aarch64: create better code for not(<byte>)

git-svn-id: trunk@49135 -
This commit is contained in:
florian 2021-04-08 17:21:59 +00:00
parent 44e39f454a
commit c90616944d

View File

@ -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);