* x86-64 and i386 use the popcnt instruction of possible

git-svn-id: trunk@22291 -
This commit is contained in:
florian 2012-09-02 20:59:48 +00:00
parent ff12d63248
commit 76bea5c4fd

View File

@ -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;