浏览代码

* 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;
        begin
          Result:=nil;
-         if (current_settings.fputype<fpu_sse42)
+         if not(CPUX86_HAS_POPCNT in cpu_capabilities[current_settings.cputype])
 {$ifdef i386}
            or is_64bit(left.resultdef)
 {$endif i386}