Browse Source

* 8086 compilation fixed

florian 3 years ago
parent
commit
4e28962115
1 changed files with 4 additions and 2 deletions
  1. 4 2
      compiler/x86/nx86cnv.pas

+ 4 - 2
compiler/x86/nx86cnv.pas

@@ -266,9 +266,11 @@ implementation
              (FPUX86_HAS_AVX512F in fpu_capabilities[current_settings.fputype]))
              (FPUX86_HAS_AVX512F in fpu_capabilities[current_settings.fputype]))
            ) then
            ) then
 {$else cpu64bitalu}
 {$else cpu64bitalu}
-           ((torddef(left.resultdef).ordtype=s32bit) or
-            ((torddef(left.resultdef).ordtype=u32bit) and
+           ((torddef(left.resultdef).ordtype=s32bit)
+{$ifdef i386}
+            or ((torddef(left.resultdef).ordtype=u32bit) and
              (FPUX86_HAS_AVX512F in fpu_capabilities[current_settings.fputype]))
              (FPUX86_HAS_AVX512F in fpu_capabilities[current_settings.fputype]))
+{$endif i386}
            ) then
            ) then
 {$endif cpu64bitalu}
 {$endif cpu64bitalu}
           begin
           begin