Browse Source

* i8086 has no cpu_capabilites

git-svn-id: trunk@26791 -
florian 11 years ago
parent
commit
1882ab8d5a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      compiler/x86/nx86inl.pas

+ 6 - 1
compiler/x86/nx86inl.pas

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