浏览代码

* Fixed tcallnode.expectloc for x87 floating-point results

git-svn-id: trunk@19514 -
sergei 14 年之前
父节点
当前提交
964eb8772a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ncal.pas

+ 2 - 1
compiler/ncal.pas

@@ -1836,7 +1836,8 @@ implementation
           realresdef:=tstoreddef(typedef);
         if realresdef.is_intregable then
           result:=LOC_REGISTER
-        else if realresdef.is_fpuregable then
+        else if (realresdef.typ=floatdef) and
+          not(cs_fp_emulation in current_settings.moduleswitches) then
           if use_vectorfpu(realresdef) then
             result:=LOC_MMREGISTER
           else