mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 23:49:29 +02:00
- removed 2 unnecessary instructions for 8-bit OP_ROL/OP_ROR in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44669 -
This commit is contained in:
parent
eb3c4546ab
commit
0e257a2c9f
@ -722,18 +722,19 @@ unit cgcpu;
|
||||
list.concat(taicpu.op_reg(A_INC,NR_B));
|
||||
list.concat(taicpu.op_reg(A_DEC,NR_B));
|
||||
a_jmp_flags(list,F_E,l2);
|
||||
case op of
|
||||
OP_ROL:
|
||||
begin
|
||||
list.concat(taicpu.op_reg(A_RRC,GetOffsetReg64(dst,dsthi,tcgsize2size[size]-1)));
|
||||
list.concat(taicpu.op_reg(A_RLC,GetOffsetReg64(dst,dsthi,tcgsize2size[size]-1)));
|
||||
end;
|
||||
OP_ROR:
|
||||
begin
|
||||
list.concat(taicpu.op_reg(A_RLC,dst));
|
||||
list.concat(taicpu.op_reg(A_RRC,dst));
|
||||
end;
|
||||
end;
|
||||
if size in [OS_S16,OS_16,OS_S32,OS_32,OS_S64,OS_64] then
|
||||
case op of
|
||||
OP_ROL:
|
||||
begin
|
||||
list.concat(taicpu.op_reg(A_RRC,GetOffsetReg64(dst,dsthi,tcgsize2size[size]-1)));
|
||||
list.concat(taicpu.op_reg(A_RLC,GetOffsetReg64(dst,dsthi,tcgsize2size[size]-1)));
|
||||
end;
|
||||
OP_ROR:
|
||||
begin
|
||||
list.concat(taicpu.op_reg(A_RLC,dst));
|
||||
list.concat(taicpu.op_reg(A_RRC,dst));
|
||||
end;
|
||||
end;
|
||||
cg.a_label(list,l1);
|
||||
case op of
|
||||
OP_SHL:
|
||||
|
Loading…
Reference in New Issue
Block a user