mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-24 15:49:17 +02:00
* optimize converting of 8/16/32 bit constants to 64bit ones
This commit is contained in:
parent
0052fd1eb6
commit
6b00727480
@ -174,6 +174,16 @@ implementation
|
||||
|
||||
{ do we need a sign extension for int64? }
|
||||
if is_64bitint(resulttype) then
|
||||
{ special case for constants (JM) }
|
||||
if is_constintnode(left) then
|
||||
begin
|
||||
if tordconstnode(left).value >= 0 then
|
||||
emit_reg_reg(A_XOR,S_L,
|
||||
hregister2,hregister2)
|
||||
else
|
||||
emit_const_reg(A_MOV,S_L,$ffffffff,hregister2);
|
||||
end
|
||||
else
|
||||
begin
|
||||
emit_reg_reg(A_XOR,S_L,
|
||||
hregister2,hregister2);
|
||||
@ -1436,7 +1446,10 @@ begin
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.3 2000-11-04 14:25:23 florian
|
||||
Revision 1.4 2000-11-11 16:00:10 jonas
|
||||
* optimize converting of 8/16/32 bit constants to 64bit ones
|
||||
|
||||
Revision 1.3 2000/11/04 14:25:23 florian
|
||||
+ merged Attila's changes for interfaces, not tested yet
|
||||
|
||||
Revision 1.2 2000/10/31 22:02:56 peter
|
||||
|
Loading…
Reference in New Issue
Block a user