瀏覽代碼

* enable cpuneedsmulhelper for the 32-bit multiplication

git-svn-id: branches/i8086@23796 -
nickysn 12 年之前
父節點
當前提交
d72d496478
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      compiler/fpcdefs.inc
  2. 1 1
      compiler/nadd.pas

+ 1 - 0
compiler/fpcdefs.inc

@@ -54,6 +54,7 @@
   {$define fewintregisters}
   {$define cpurox}
   {$define SUPPORT_SAFECALL}
+  {$define cpuneedsmulhelper}
 {$endif i8086}
 
 {$ifdef i386}

+ 1 - 1
compiler/nadd.pas

@@ -2917,7 +2917,7 @@ implementation
              else
                begin
 {$ifdef cpuneedsmulhelper}
-                 if (nodetype=muln) and not(torddef(resultdef).ordtype in [u8bit,s8bit]) then
+                 if (nodetype=muln) and not(torddef(resultdef).ordtype in [u8bit,s8bit{$ifdef cpu16bitalu},u16bit,s16bit{$endif}]) then
                    begin
                      result := nil;