mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 23:29:15 +02:00
* x86-64 and i386 use the popcnt instruction of possible
git-svn-id: trunk@22291 -
This commit is contained in:
parent
ff12d63248
commit
76bea5c4fd
@ -172,9 +172,17 @@ implementation
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function tx86inlinenode.first_popcnt: tnode;
|
||||
begin
|
||||
Result:=inherited first_popcnt;
|
||||
Result:=nil;
|
||||
if (current_settings.fputype<fpu_sse42)
|
||||
{$ifdef i386}
|
||||
or is_64bit(left.resultdef) then
|
||||
{$endif i386}
|
||||
Result:=inherited first_popcnt
|
||||
else
|
||||
expectloc:=LOC_REGISTER;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user