mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:49:30 +02:00
* cleanup tshlshrnode.pass_1
git-svn-id: trunk@43347 -
This commit is contained in:
parent
fdeaacac21
commit
4e33889a29
@ -884,8 +884,6 @@ implementation
|
||||
|
||||
|
||||
function tshlshrnode.pass_1 : tnode;
|
||||
var
|
||||
regs : longint;
|
||||
begin
|
||||
result:=nil;
|
||||
firstpass(left);
|
||||
@ -893,24 +891,12 @@ implementation
|
||||
if codegenerror then
|
||||
exit;
|
||||
|
||||
expectloc:=LOC_REGISTER;
|
||||
{$if not defined(cpu64bitalu) and not defined(cpuhighleveltarget)}
|
||||
{ 64 bit ints have their own shift handling }
|
||||
if is_64bit(left.resultdef) then
|
||||
begin
|
||||
result := first_shlshr64bitint;
|
||||
if assigned(result) then
|
||||
exit;
|
||||
regs:=2;
|
||||
end
|
||||
else
|
||||
result := first_shlshr64bitint;
|
||||
{$endif not cpu64bitalu and not cpuhighleveltarget}
|
||||
begin
|
||||
regs:=1
|
||||
end;
|
||||
|
||||
if (right.nodetype<>ordconstn) then
|
||||
inc(regs);
|
||||
expectloc:=LOC_REGISTER;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user