瀏覽代碼

* popcnt has a separate cpuid flag so we should separate it from sse

git-svn-id: trunk@26789 -
florian 11 年之前
父節點
當前提交
84f7f5f934
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86/nx86inl.pas

+ 1 - 1
compiler/x86/nx86inl.pas

@@ -234,7 +234,7 @@ implementation
      function tx86inlinenode.first_popcnt: tnode;
      function tx86inlinenode.first_popcnt: tnode;
        begin
        begin
          Result:=nil;
          Result:=nil;
-         if (current_settings.fputype<fpu_sse42)
+         if not(CPUX86_HAS_POPCNT in cpu_capabilities[current_settings.cputype])
 {$ifdef i386}
 {$ifdef i386}
            or is_64bit(left.resultdef)
            or is_64bit(left.resultdef)
 {$endif i386}
 {$endif i386}