mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 19:09:49 +01:00
* On SPARC, using shifts for zero-extending to OS_16 is more efficient than ANDing with 65535 (two instructions and no temp registers vs. three instructions and a temp register).
git-svn-id: trunk@26257 -
This commit is contained in:
parent
b376f56bf3
commit
c3fe0c7379
@ -699,7 +699,10 @@ implementation
|
||||
OS_8 :
|
||||
a_op_const_reg_reg(list,OP_AND,tosize,$ff,reg1,reg2);
|
||||
OS_16 :
|
||||
a_op_const_reg_reg(list,OP_AND,tosize,$ffff,reg1,reg2);
|
||||
begin
|
||||
list.concat(taicpu.op_reg_const_reg(A_SLL,reg1,16,reg2));
|
||||
list.concat(taicpu.op_reg_const_reg(A_SRL,reg2,16,reg2));
|
||||
end;
|
||||
OS_32,
|
||||
OS_S32 :
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user