mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:29:24 +02:00
m68k/n68kmat.pas, tm68kshlshrnode.first_shlshr64bitint:
use RTL helper functions (through the inherited method) if we're not shifting by a constant This fixes test/cg/tshlshr git-svn-id: trunk@23378 -
This commit is contained in:
parent
162896e7d7
commit
741992bae4
@ -264,8 +264,12 @@ implementation
|
|||||||
|
|
||||||
function tm68kShlShrNode.first_shlshr64bitint:TNode;
|
function tm68kShlShrNode.first_shlshr64bitint:TNode;
|
||||||
begin
|
begin
|
||||||
{ 2nd pass is our friend }
|
if is_64bit(left.resultdef) and not (right.nodetype=ordconstn) then
|
||||||
result := nil;
|
{ for 64bit shifts with anything but constants we use rtl helpers }
|
||||||
|
result:=inherited
|
||||||
|
else
|
||||||
|
{ 2nd pass is our friend }
|
||||||
|
result := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user