2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@28390 -
Jonas Maebe 11 жил өмнө
parent
commit
5e280b3131

+ 4 - 0
compiler/arm/rgcpu.pas

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