Procházet zdrojové kódy

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

git-svn-id: trunk@22291 -
florian před 13 roky
rodič
revize
76bea5c4fd
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9 1
      compiler/x86/nx86inl.pas

+ 9 - 1
compiler/x86/nx86inl.pas

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