Răsfoiți Sursa

* don't convert movs into (the non-existing) ldrs in do_spill_replace()

git-svn-id: trunk@28390 -
Jonas Maebe 11 ani în urmă
părinte
comite
5e280b3131
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      compiler/arm/rgcpu.pas

+ 4 - 0
compiler/arm/rgcpu.pas

@@ -290,6 +290,10 @@ unit rgcpu;
         if abs(spilltemp.offset)>4095 then
           exit;
 
+        { ldr can't set the flags }
+        if instr.oppostfix=PF_S then
+          exit;
+
         if GenerateThumbCode and
           (abs(spilltemp.offset)>1020) then
           exit;