mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:49:39 +02:00
Little cleanup after r26669, no functional changes
git-svn-id: trunk@26670 -
This commit is contained in:
parent
80d2ee8ad0
commit
a72a3f4e01
@ -438,8 +438,7 @@ implementation
|
|||||||
|
|
||||||
function tarmshlshrnode.first_shlshr64bitint: tnode;
|
function tarmshlshrnode.first_shlshr64bitint: tnode;
|
||||||
begin
|
begin
|
||||||
if GenerateThumbCode or GenerateThumb2Code then//or
|
if GenerateThumbCode or GenerateThumb2Code then
|
||||||
// (right.nodetype <> ordconstn) then
|
|
||||||
result:=inherited
|
result:=inherited
|
||||||
else
|
else
|
||||||
result := nil;
|
result := nil;
|
||||||
@ -448,7 +447,6 @@ implementation
|
|||||||
procedure tarmshlshrnode.second_64bit;
|
procedure tarmshlshrnode.second_64bit;
|
||||||
var
|
var
|
||||||
v : TConstExprInt;
|
v : TConstExprInt;
|
||||||
l1,l2,l3:Tasmlabel;
|
|
||||||
so: tshifterop;
|
so: tshifterop;
|
||||||
lreg, resreg: TRegister64;
|
lreg, resreg: TRegister64;
|
||||||
|
|
||||||
@ -474,7 +472,7 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{This code is build like it gets called with sm=SM_LSR all the time, for SM_LSL dst* and src* have to be reversed
|
{This code is build like it gets called with sm=SM_LSR all the time, for SM_LSL dst* and src* have to be reversed
|
||||||
This will generate
|
This will generate
|
||||||
mov shiftval1, shiftval
|
mov shiftval1, shiftval
|
||||||
cmp shiftval1, #64
|
cmp shiftval1, #64
|
||||||
movcs shiftval1, #64
|
movcs shiftval1, #64
|
||||||
@ -534,7 +532,6 @@ implementation
|
|||||||
location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
|
location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
|
||||||
location.register64.reghi:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
location.register64.reghi:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
||||||
location.register64.reglo:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
location.register64.reglo:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
|
||||||
|
|
||||||
|
|
||||||
{ load left operator in a register }
|
{ load left operator in a register }
|
||||||
if not(left.location.loc in [LOC_CREGISTER,LOC_REGISTER]) or
|
if not(left.location.loc in [LOC_CREGISTER,LOC_REGISTER]) or
|
||||||
|
Loading…
Reference in New Issue
Block a user