فهرست منبع

* set correct expectloc for vectorfpu temps

git-svn-id: trunk@15217 -
Jonas Maebe 15 سال پیش
والد
کامیت
a055ed873d
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      compiler/nbas.pas

+ 9 - 3
compiler/nbas.pas

@@ -960,10 +960,16 @@ implementation
           begin
             if tempinfo^.typedef.typ=floatdef then
               begin
-                if (tempinfo^.temptype = tt_persistent) then
-                  expectloc := LOC_CFPUREGISTER
+                if not use_vectorfpu(tempinfo^.typedef) then
+                  if (tempinfo^.temptype = tt_persistent) then
+                    expectloc := LOC_CFPUREGISTER
+                  else
+                    expectloc := LOC_FPUREGISTER
                 else
-                  expectloc := LOC_FPUREGISTER;
+                  if (tempinfo^.temptype = tt_persistent) then
+                    expectloc := LOC_CMMREGISTER
+                  else
+                    expectloc := LOC_MMREGISTER
               end
             else
               begin