Explorar o código

* set correct expectloc for vectorfpu temps

git-svn-id: trunk@15217 -
Jonas Maebe %!s(int64=15) %!d(string=hai) anos
pai
achega
a055ed873d
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      compiler/nbas.pas

+ 9 - 3
compiler/nbas.pas

@@ -960,10 +960,16 @@ implementation
           begin
           begin
             if tempinfo^.typedef.typ=floatdef then
             if tempinfo^.typedef.typ=floatdef then
               begin
               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
                 else
-                  expectloc := LOC_FPUREGISTER;
+                  if (tempinfo^.temptype = tt_persistent) then
+                    expectloc := LOC_CMMREGISTER
+                  else
+                    expectloc := LOC_MMREGISTER
               end
               end
             else
             else
               begin
               begin