Browse Source

* Fixed tcallnode.expectloc for x87 floating-point results

git-svn-id: trunk@19514 -
sergei 14 years ago
parent
commit
964eb8772a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/ncal.pas

+ 2 - 1
compiler/ncal.pas

@@ -1836,7 +1836,8 @@ implementation
           realresdef:=tstoreddef(typedef);
           realresdef:=tstoreddef(typedef);
         if realresdef.is_intregable then
         if realresdef.is_intregable then
           result:=LOC_REGISTER
           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
           if use_vectorfpu(realresdef) then
             result:=LOC_MMREGISTER
             result:=LOC_MMREGISTER
           else
           else