瀏覽代碼

Fix compilation of i8086 compiler after commit #47840

git-svn-id: trunk@47844 -
pierre 4 年之前
父節點
當前提交
26170815b4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/x86/nx86inl.pas

+ 4 - 0
compiler/x86/nx86inl.pas

@@ -1315,9 +1315,11 @@ implementation
               case tfloatdef(left.resultdef).floattype of
               case tfloatdef(left.resultdef).floattype of
                 s32real:
                 s32real:
                   begin
                   begin
+{$ifndef i8086}
                     if UseAVX512 and (FPUX86_HAS_AVX512DQ in fpu_capabilities[current_settings.fputype]) then
                     if UseAVX512 and (FPUX86_HAS_AVX512DQ in fpu_capabilities[current_settings.fputype]) then
                       current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VREDUCESS,S_NO,3,left.location.register,left.location.register,location.register))
                       current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VREDUCESS,S_NO,3,left.location.register,left.location.register,location.register))
                     else
                     else
+{$endif not i8086}
                       begin
                       begin
                         { using left.location.register here as 3rd parameter is crucial to break dependency chains }
                         { using left.location.register here as 3rd parameter is crucial to break dependency chains }
                         current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VROUNDSS,S_NO,3,left.location.register,left.location.register,location.register));
                         current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VROUNDSS,S_NO,3,left.location.register,left.location.register,location.register));
@@ -1326,9 +1328,11 @@ implementation
                   end;
                   end;
                 s64real:
                 s64real:
                   begin
                   begin
+{$ifndef i8086}
                     if UseAVX512 and (FPUX86_HAS_AVX512DQ in fpu_capabilities[current_settings.fputype]) then
                     if UseAVX512 and (FPUX86_HAS_AVX512DQ in fpu_capabilities[current_settings.fputype]) then
                       current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VREDUCESD,S_NO,3,left.location.register,left.location.register,location.register))
                       current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VREDUCESD,S_NO,3,left.location.register,left.location.register,location.register))
                     else
                     else
+{$endif not i8086}
                       begin
                       begin
                         { using left.location.register here as 3rd parameter is crucial to break dependency chains }
                         { using left.location.register here as 3rd parameter is crucial to break dependency chains }
                         current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VROUNDSD,S_NO,3,left.location.register,left.location.register,location.register));
                         current_asmdata.CurrAsmList.concat(taicpu.op_const_reg_reg_reg(A_VROUNDSD,S_NO,3,left.location.register,left.location.register,location.register));