Explorar el Código

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

git-svn-id: trunk@22291 -
florian hace 13 años
padre
commit
76bea5c4fd
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  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;